public class GeoPackageTableCreator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENTS
Contents property
|
static String |
DATA_COLUMN_CONSTRAINTS
Data Column Constraints property
|
static String |
DATA_COLUMNS
Data Columns property
|
static String |
DIRECTORY
Directory property
|
static String |
EXTENDED_RELATIONS
Extended Relations property
|
static String |
EXTENSIONS
Extensions property
|
static String |
GEOMETRY_COLUMNS
Geometry Columns property
|
static String |
GRIDDED_COVERAGE
Tiled Gridded Coverage Data Coverage extension property
|
static String |
GRIDDED_PATH
Tiled Gridded Coverage Data path property
|
static String |
GRIDDED_TILE
Tiled Gridded Coverage Data Tile extension property
|
static String |
METADATA
Metadata property
|
static String |
METADATA_PATH
Metadata path property
|
static String |
METADATA_REFERENCE
Metadata Reference property
|
static String |
RELATED_PATH
Extended Relations property
|
static String |
RTREE
RTree property
|
static String |
SCHEMA_PATH
Schema (Data Columns) path property
|
static String |
SPATIAL_REFERENCE_SYSTEM
Spatial Reference System property
|
static String |
TILE_MATRIX
Tile Matrix property
|
static String |
TILE_MATRIX_SET
Tile Matrix Set property
|
| Constructor and Description |
|---|
GeoPackageTableCreator(GeoPackageCore geoPackage)
Constructor
|
GeoPackageTableCreator(GeoPackageCoreConnection db)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
createContents()
Create Contents table
|
int |
createDataColumnConstraints()
Create Data Column Constraints table
|
int |
createDataColumns()
Create Data Columns table
|
int |
createExtendedRelations()
Create the Extended Relations table
|
int |
createExtensions()
Create Extensions table
|
int |
createGeometryColumns()
Create Geometry Columns table
|
int |
createGriddedCoverage()
Create the Tiled Gridded Coverage Data Coverage extension table
|
int |
createGriddedTile()
Create the Tiled Gridded Coverage Data Tile extension table
|
int |
createMetadata()
Create Metadata table
|
int |
createMetadataReference()
Create Metadata Reference table
|
void |
createRequired()
Create the minimum required GeoPackage tables
|
int |
createSpatialReferenceSystem()
Create Spatial Reference System table and views
|
<TColumn extends UserColumn> |
createTable(UserTable<TColumn> table)
Create the user defined table
|
int |
createTileMatrix()
Create Tile Matrix table
|
int |
createTileMatrixSet()
Create Tile Matrix Set table
|
void |
dropTable(String table)
Drop the table if it exists
|
void |
dropView(String view)
Drop the view if it exists
|
int |
execScript()
Execute the database script name
|
int |
execScript(String property)
Execute the database script name for the property
|
int |
execScript(String propertyPath,
String property)
Execute the database script name for the property
|
int |
execSQLScript(String sqlScript)
Execute the SQL Script
|
int |
execSQLScript(String property,
String sqlScript)
Execute the SQL Script
|
String |
getAuthor()
Get the table creator author
|
String |
getName()
Get the table creator name
|
String |
getProperty()
Get the table creator property path
|
static String |
getScript(String property)
Get the database script name for the property
|
static List<String> |
readScript(String property)
Read the SQL Script and parse the statements for the property
|
static List<String> |
readScript(String pathProperty,
String property)
Read the SQL Script and parse the statements for the property
|
static List<String> |
readSQLScript(String sqlScript)
Read the SQL Script and parse the statements
|
static List<String> |
readSQLScript(String property,
String sqlScript)
Read the SQL Script and parse the statements
|
public static final String DIRECTORY
public static final String SPATIAL_REFERENCE_SYSTEM
public static final String CONTENTS
public static final String GEOMETRY_COLUMNS
public static final String TILE_MATRIX_SET
public static final String TILE_MATRIX
public static final String EXTENSIONS
public static final String SCHEMA_PATH
public static final String DATA_COLUMNS
public static final String DATA_COLUMN_CONSTRAINTS
public static final String METADATA_PATH
public static final String METADATA
public static final String METADATA_REFERENCE
public static final String GRIDDED_PATH
public static final String GRIDDED_COVERAGE
public static final String GRIDDED_TILE
public static final String RELATED_PATH
public static final String EXTENDED_RELATIONS
public static final String RTREE
public GeoPackageTableCreator(GeoPackageCoreConnection db)
db - db connectionpublic GeoPackageTableCreator(GeoPackageCore geoPackage)
geoPackage - GeoPackagepublic static String getScript(String property)
property - property namepublic static List<String> readScript(String property)
property - property namepublic static List<String> readScript(String pathProperty, String property)
pathProperty - path propertyproperty - property namepublic static List<String> readSQLScript(String sqlScript)
sqlScript - SQL script property file namepublic static List<String> readSQLScript(String property, String sqlScript)
property - path propertysqlScript - SQL script property file namepublic int createSpatialReferenceSystem()
public int createContents()
public int createGeometryColumns()
public int createTileMatrixSet()
public int createTileMatrix()
public int createExtensions()
public int createDataColumns()
public int createDataColumnConstraints()
public int createMetadata()
public int createMetadataReference()
public int createGriddedCoverage()
public int createGriddedTile()
public int createExtendedRelations()
public int execScript()
public int execScript(String property)
property - property namepublic int execScript(String propertyPath, String property)
propertyPath - table creator property pathproperty - property namepublic int execSQLScript(String sqlScript)
sqlScript - SQL script property file namepublic int execSQLScript(String property, String sqlScript)
property - table creator property pathsqlScript - SQL script property file namepublic String getProperty()
public String getAuthor()
public String getName()
public <TColumn extends UserColumn> void createTable(UserTable<TColumn> table)
TColumn - column typetable - user tablepublic void createRequired()
public void dropTable(String table)
table - table namepublic void dropView(String view)
view - view nameCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.