Class RTreeIndexCoreExtension
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.rtree.RTreeIndexCoreExtension
-
public abstract class RTreeIndexCoreExtension extends BaseExtension
RTree Index abstract core extension- Since:
- 2.0.1
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
COLUMN_ID
ID column namestatic String
COLUMN_MAX_X
Max X column namestatic String
COLUMN_MAX_Y
Max Y column namestatic String
COLUMN_MIN_X
Min X column namestatic String
COLUMN_MIN_Y
Min Y column nameprotected GeoPackageCoreConnection
connection
Connectionstatic String
CREATE_PROPERTY
Create SQL propertystatic String
DEFINITION
Extension definition URLstatic String
DROP_FORCE_PROPERTY
Drop Force SQL propertystatic String
DROP_PROPERTY
Drop SQL propertystatic String
EXTENSION_NAME
Extension nameprotected boolean
geodesic
Index geometries using geodesic linesstatic String
GEOMETRY_COLUMN_SUBSTITUTE
Geometry Column substitute valuestatic String
IS_EMPTY_FUNCTION
Is Empty Function namestatic String
LOAD_PROPERTY
Load SQL propertystatic String
MAX_X_FUNCTION
Max X Function namestatic String
MAX_Y_FUNCTION
Max Y Function namestatic String
MIN_X_FUNCTION
Min X Function namestatic String
MIN_Y_FUNCTION
Min Y Function namestatic String
NAME
Namestatic String
PK_COLUMN_SUBSTITUTE
Primary Key Column substitute valueprotected Map<Integer,Projection>
projections
Mapping between srs ids and projectionsstatic String
RTREE_PREFIX
RTree table and trigger name prefixstatic String
TABLE_PROPERTY
Table SQL propertystatic String
TABLE_SUBSTITUTE
Table substitute valuestatic String
TRIGGER_DELETE_NAME
Trigger delete namestatic String
TRIGGER_DROP_PROPERTY
Trigger drop namestatic String
TRIGGER_INSERT_NAME
Trigger Insert namestatic String
TRIGGER_SUBSTITUTE
Trigger substitute valuestatic String
TRIGGER_UPDATE1_NAME
Deprecated.replaced by update6 and update7static String
TRIGGER_UPDATE2_NAME
Trigger update 2 namestatic String
TRIGGER_UPDATE3_NAME
Deprecated.replaced by update5static String
TRIGGER_UPDATE4_NAME
Trigger update 4 namestatic String
TRIGGER_UPDATE5_NAME
Trigger update 5 namestatic String
TRIGGER_UPDATE6_NAME
Trigger update 6 namestatic String
TRIGGER_UPDATE7_NAME
Trigger update 7 name-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RTreeIndexCoreExtension(GeoPackageCore geoPackage)
Constructorprotected
RTreeIndexCoreExtension(GeoPackageCore geoPackage, boolean geodesic)
Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Extensions
create(String tableName, String geometryColumnName, String idColumnName)
Create the RTree Index extension for the feature table, geometry column, and id column.Extensions
create(FeatureTable featureTable)
Create the RTree Index extension for the feature table.void
createAllFunctions()
Create all connection SQL Functions for min x, max x, min y, max y, and is emptyvoid
createAllTriggers(String tableName, String geometryColumnName, String idColumnName)
Create Triggers to Maintain Spatial Index Valuesvoid
createAllTriggers(FeatureTable featureTable)
Create Triggers to Maintain Spatial Index Valuesvoid
createDeleteTrigger(String tableName, String geometryColumnName, String idColumnName)
Create delete triggerboolean
createFunctions()
Check if the GeoPackage has the RTree extension and create the functions if neededboolean
createFunctions(String tableName, String columnName)
Check if the table and column has the RTree extension and create the functions if neededboolean
createFunctions(FeatureTable featureTable)
Check if the feature table has the RTree extension and create the functions if neededvoid
createInsertTrigger(String tableName, String geometryColumnName, String idColumnName)
Create insert triggerabstract void
createIsEmptyFunction()
Create the is empty SQL functionabstract void
createMaxXFunction()
Create the max x SQL functionabstract void
createMaxYFunction()
Create the max y SQL functionabstract void
createMinXFunction()
Create the min x SQL functionabstract void
createMinYFunction()
Create the min y SQL functionvoid
createRTreeIndex(String tableName, String geometryColumnName)
Create the RTree Index Virtual Tablevoid
createRTreeIndex(FeatureTable featureTable)
Create the RTree Index Virtual Tablevoid
createUpdate1Trigger(String tableName, String geometryColumnName, String idColumnName)
Deprecated.replaced by update6 and update7void
createUpdate2Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 2 triggervoid
createUpdate3Trigger(String tableName, String geometryColumnName, String idColumnName)
Deprecated.replaced by update5void
createUpdate4Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 4 triggervoid
createUpdate5Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 5 triggervoid
createUpdate6Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 6 triggervoid
createUpdate7Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 7 triggervoid
delete(String tableName)
Delete all RTree Index extensions for the table.void
delete(String tableName, String geometryColumnName)
Delete the RTree Index extension for the table and geometry column.void
delete(FeatureTable featureTable)
Delete the RTree Index extension for the feature table.void
deleteAll()
Delete all RTree Index extensions.void
drop(String tableName, String geometryColumnName)
Drop the the triggers and RTree table for the table and geometry columnvoid
drop(FeatureTable featureTable)
Drop the the triggers and RTree table for the feature tablevoid
dropAllTriggers(String tableName, String geometryColumnName)
Drop Triggers that Maintain Spatial Index Valuesvoid
dropAllTriggers(FeatureTable featureTable)
Drop Triggers that Maintain Spatial Index Valuesvoid
dropDeleteTrigger(String tableName, String geometryColumnName)
Drop delete triggervoid
dropInsertTrigger(String tableName, String geometryColumnName)
Drop insert triggervoid
dropRTreeIndex(String tableName, String geometryColumnName)
Drop the RTree Index Virtual Tablevoid
dropRTreeIndex(FeatureTable featureTable)
Drop the RTree Index Virtual Tablevoid
dropTrigger(String tableName, String geometryColumnName, String triggerName)
Drop the trigger for the table, geometry column, and trigger nameboolean
dropTriggers(String tableName, String columnName)
Check if the table and column has the RTree extension and if found, drop the triggersvoid
dropTriggers(FeatureTable featureTable)
Check if the feature table has the RTree extension and if found, drop the triggersvoid
dropUpdate1Trigger(String tableName, String geometryColumnName)
Drop update 1 triggervoid
dropUpdate2Trigger(String tableName, String geometryColumnName)
Drop update 2 triggervoid
dropUpdate3Trigger(String tableName, String geometryColumnName)
Drop update 3 triggervoid
dropUpdate4Trigger(String tableName, String geometryColumnName)
Drop update 4 triggervoid
dropUpdate5Trigger(String tableName, String geometryColumnName)
Drop update 5 triggervoid
dropUpdate6Trigger(String tableName, String geometryColumnName)
Drop update 6 triggervoid
dropUpdate7Trigger(String tableName, String geometryColumnName)
Drop update 7 triggerprotected void
executeSQL(String sql, boolean trigger)
Execute the SQL statementprotected GeometryEnvelope
geodesicEnvelope(GeometryEnvelope envelope, int srsId)
Expand the vertical bounds of a geometry envelope by geodesic boundsprotected GeometryEnvelope
getEnvelope(GeoPackageGeometryData data)
Get or build a geometry envelope from the Geometry DataExtensions
getOrCreate(String tableName, String columnName)
Get or create the extensionExtensions
getOrCreate(FeatureTable featureTable)
Get or create the extensionprotected Projection
getProjection(int srsId)
Get the projection of the spatial reference system idprotected UserCustomTable
getRTreeTable(FeatureTable featureTable)
Get the RTree Tableboolean
has()
Determine if the GeoPackage has the extension for any tableboolean
has(String tableName)
Determine if the GeoPackage table has the extensionboolean
has(String tableName, String columnName)
Determine if the GeoPackage table and column has the extensionboolean
has(FeatureTable featureTable)
Determine if the GeoPackage feature table has the extensionboolean
isGeodesic()
Geometries indexed using geodesic linesvoid
loadRTreeIndex(String tableName, String geometryColumnName, String idColumnName)
Load the RTree Spatial Index Valuesvoid
loadRTreeIndex(FeatureTable featureTable)
Load the RTree Spatial Index Valuesvoid
setGeodesic(boolean geodesic)
Set the geodestic flag, true to index geodesic geometries-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, verifyWritable
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Name- See Also:
- Constant Field Values
-
RTREE_PREFIX
public static final String RTREE_PREFIX
RTree table and trigger name prefix- Since:
- 3.3.0
- See Also:
- Constant Field Values
-
MIN_X_FUNCTION
public static final String MIN_X_FUNCTION
Min X Function name- See Also:
- Constant Field Values
-
MAX_X_FUNCTION
public static final String MAX_X_FUNCTION
Max X Function name- See Also:
- Constant Field Values
-
MIN_Y_FUNCTION
public static final String MIN_Y_FUNCTION
Min Y Function name- See Also:
- Constant Field Values
-
MAX_Y_FUNCTION
public static final String MAX_Y_FUNCTION
Max Y Function name- See Also:
- Constant Field Values
-
IS_EMPTY_FUNCTION
public static final String IS_EMPTY_FUNCTION
Is Empty Function name- See Also:
- Constant Field Values
-
CREATE_PROPERTY
public static final String CREATE_PROPERTY
Create SQL property- See Also:
- Constant Field Values
-
TABLE_PROPERTY
public static final String TABLE_PROPERTY
Table SQL property- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
LOAD_PROPERTY
public static final String LOAD_PROPERTY
Load SQL property- See Also:
- Constant Field Values
-
DROP_PROPERTY
public static final String DROP_PROPERTY
Drop SQL property- See Also:
- Constant Field Values
-
DROP_FORCE_PROPERTY
public static final String DROP_FORCE_PROPERTY
Drop Force SQL property- Since:
- 3.2.0
- See Also:
- Constant Field Values
-
TRIGGER_INSERT_NAME
public static final String TRIGGER_INSERT_NAME
Trigger Insert name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE1_NAME
public static final String TRIGGER_UPDATE1_NAME
Deprecated.replaced by update6 and update7Trigger update 1 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE2_NAME
public static final String TRIGGER_UPDATE2_NAME
Trigger update 2 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE3_NAME
public static final String TRIGGER_UPDATE3_NAME
Deprecated.replaced by update5Trigger update 3 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE4_NAME
public static final String TRIGGER_UPDATE4_NAME
Trigger update 4 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE5_NAME
public static final String TRIGGER_UPDATE5_NAME
Trigger update 5 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE6_NAME
public static final String TRIGGER_UPDATE6_NAME
Trigger update 6 name- See Also:
- Constant Field Values
-
TRIGGER_UPDATE7_NAME
public static final String TRIGGER_UPDATE7_NAME
Trigger update 7 name- See Also:
- Constant Field Values
-
TRIGGER_DELETE_NAME
public static final String TRIGGER_DELETE_NAME
Trigger delete name- See Also:
- Constant Field Values
-
TRIGGER_DROP_PROPERTY
public static final String TRIGGER_DROP_PROPERTY
Trigger drop name- See Also:
- Constant Field Values
-
COLUMN_ID
public static final String COLUMN_ID
ID column name- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
COLUMN_MIN_X
public static final String COLUMN_MIN_X
Min X column name- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
COLUMN_MAX_X
public static final String COLUMN_MAX_X
Max X column name- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
COLUMN_MIN_Y
public static final String COLUMN_MIN_Y
Min Y column name- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
COLUMN_MAX_Y
public static final String COLUMN_MAX_Y
Max Y column name- Since:
- 3.1.0
- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final String EXTENSION_NAME
Extension name- See Also:
- Constant Field Values
-
DEFINITION
public static final String DEFINITION
Extension definition URL
-
TABLE_SUBSTITUTE
public static final String TABLE_SUBSTITUTE
Table substitute value
-
GEOMETRY_COLUMN_SUBSTITUTE
public static final String GEOMETRY_COLUMN_SUBSTITUTE
Geometry Column substitute value
-
PK_COLUMN_SUBSTITUTE
public static final String PK_COLUMN_SUBSTITUTE
Primary Key Column substitute value
-
TRIGGER_SUBSTITUTE
public static final String TRIGGER_SUBSTITUTE
Trigger substitute value
-
connection
protected GeoPackageCoreConnection connection
Connection
-
geodesic
protected boolean geodesic
Index geometries using geodesic lines- Since:
- 6.6.7
-
projections
protected Map<Integer,Projection> projections
Mapping between srs ids and projections- Since:
- 6.6.7
-
-
Constructor Detail
-
RTreeIndexCoreExtension
protected RTreeIndexCoreExtension(GeoPackageCore geoPackage)
Constructor- Parameters:
geoPackage
- GeoPackage
-
RTreeIndexCoreExtension
protected RTreeIndexCoreExtension(GeoPackageCore geoPackage, boolean geodesic)
Constructor- Parameters:
geoPackage
- GeoPackagegeodesic
- index using geodesic bounds- Since:
- 6.6.7
-
-
Method Detail
-
isGeodesic
public boolean isGeodesic()
Geometries indexed using geodesic lines- Returns:
- geodesic flag
- Since:
- 6.6.7
-
setGeodesic
public void setGeodesic(boolean geodesic)
Set the geodestic flag, true to index geodesic geometries- Parameters:
geodesic
- index geodesic geometries flag- Since:
- 6.6.7
-
geodesicEnvelope
protected GeometryEnvelope geodesicEnvelope(GeometryEnvelope envelope, int srsId)
Expand the vertical bounds of a geometry envelope by geodesic bounds- Parameters:
envelope
- geometry envelopesrsId
- spatial reference system id- Returns:
- geometry envelope
- Since:
- 6.6.7
-
getProjection
protected Projection getProjection(int srsId)
Get the projection of the spatial reference system id- Parameters:
srsId
- spatial reference system id- Returns:
- projection
- Since:
- 6.6.7
-
getOrCreate
public Extensions getOrCreate(FeatureTable featureTable)
Get or create the extension- Parameters:
featureTable
- feature table- Returns:
- extension
-
getOrCreate
public Extensions getOrCreate(String tableName, String columnName)
Get or create the extension- Parameters:
tableName
- table namecolumnName
- column name- Returns:
- extension
-
has
public boolean has(FeatureTable featureTable)
Determine if the GeoPackage feature table has the extension- Parameters:
featureTable
- feature table- Returns:
- true if has extension
-
has
public boolean has(String tableName, String columnName)
Determine if the GeoPackage table and column has the extension- Overrides:
has
in classBaseExtension
- Parameters:
tableName
- table namecolumnName
- column name- Returns:
- true if has extension
-
has
public boolean has(String tableName)
Determine if the GeoPackage table has the extension- Overrides:
has
in classBaseExtension
- Parameters:
tableName
- table name- Returns:
- true if has extension
- Since:
- 3.2.0
-
has
public boolean has()
Determine if the GeoPackage has the extension for any table- Returns:
- true if has extension
-
createFunctions
public boolean createFunctions(FeatureTable featureTable)
Check if the feature table has the RTree extension and create the functions if needed- Parameters:
featureTable
- feature table- Returns:
- true if has extension and functions created
-
createFunctions
public boolean createFunctions(String tableName, String columnName)
Check if the table and column has the RTree extension and create the functions if needed- Parameters:
tableName
- table namecolumnName
- column name- Returns:
- true if has extension and functions created
-
createFunctions
public boolean createFunctions()
Check if the GeoPackage has the RTree extension and create the functions if needed- Returns:
- true if has extension and functions created
-
create
public Extensions create(FeatureTable featureTable)
Create the RTree Index extension for the feature table. Creates the SQL functions, loads the tree, and creates the triggers.- Parameters:
featureTable
- feature table- Returns:
- extension
-
create
public Extensions create(String tableName, String geometryColumnName, String idColumnName)
Create the RTree Index extension for the feature table, geometry column, and id column. Creates the SQL functions, loads the tree, and creates the triggers.- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name- Returns:
- extension
-
createRTreeIndex
public void createRTreeIndex(FeatureTable featureTable)
Create the RTree Index Virtual Table- Parameters:
featureTable
- feature table
-
createRTreeIndex
public void createRTreeIndex(String tableName, String geometryColumnName)
Create the RTree Index Virtual Table- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
createAllFunctions
public void createAllFunctions()
Create all connection SQL Functions for min x, max x, min y, max y, and is empty
-
createMinXFunction
public abstract void createMinXFunction()
Create the min x SQL function
-
createMaxXFunction
public abstract void createMaxXFunction()
Create the max x SQL function
-
createMinYFunction
public abstract void createMinYFunction()
Create the min y SQL function
-
createMaxYFunction
public abstract void createMaxYFunction()
Create the max y SQL function
-
createIsEmptyFunction
public abstract void createIsEmptyFunction()
Create the is empty SQL function
-
loadRTreeIndex
public void loadRTreeIndex(FeatureTable featureTable)
Load the RTree Spatial Index Values- Parameters:
featureTable
- feature table
-
loadRTreeIndex
public void loadRTreeIndex(String tableName, String geometryColumnName, String idColumnName)
Load the RTree Spatial Index Values- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createAllTriggers
public void createAllTriggers(FeatureTable featureTable)
Create Triggers to Maintain Spatial Index Values- Parameters:
featureTable
- feature table
-
createAllTriggers
public void createAllTriggers(String tableName, String geometryColumnName, String idColumnName)
Create Triggers to Maintain Spatial Index Values- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createInsertTrigger
public void createInsertTrigger(String tableName, String geometryColumnName, String idColumnName)
Create insert triggerConditions: Insertion of non-empty geometry Actions : Insert record into R-tree
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate1Trigger
public void createUpdate1Trigger(String tableName, String geometryColumnName, String idColumnName)
Deprecated.replaced by update6 and update7Create update 1 triggerConditions: Update of geometry column to non-empty geometry No row ID change Actions : Update record in R-tree
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate2Trigger
public void createUpdate2Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 2 triggerConditions: Update of geometry column to empty geometry No row ID change Actions : Remove record from R-tree
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate3Trigger
public void createUpdate3Trigger(String tableName, String geometryColumnName, String idColumnName)
Deprecated.replaced by update5Create update 3 triggerConditions: Update of any column Row ID change Non-empty geometry Actions : Remove record from R-tree for old <i> Insert record into R-tree for new <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate4Trigger
public void createUpdate4Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 4 triggerConditions: Update of any column Row ID change Empty geometry Actions : Remove record from R-tree for old and new <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate5Trigger
public void createUpdate5Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 5 triggerConditions: Update of any column Row ID change Non-empty geometry Actions : Remove record from R-tree for old <i> Insert record into R-tree for new <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate6Trigger
public void createUpdate6Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 6 triggerConditions: Update a non-empty geometry with another non-empty geometry Actions : Replace record from R-tree for <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createUpdate7Trigger
public void createUpdate7Trigger(String tableName, String geometryColumnName, String idColumnName)
Create update 7 triggerConditions: Update a null/empty geometry with a non-empty geometry Actions : Insert record into R-tree for new <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
createDeleteTrigger
public void createDeleteTrigger(String tableName, String geometryColumnName, String idColumnName)
Create delete triggerConditions: Row deleted Actions : Remove record from R-tree for old <i>
- Parameters:
tableName
- table namegeometryColumnName
- geometry column nameidColumnName
- id column name
-
delete
public void delete(FeatureTable featureTable)
Delete the RTree Index extension for the feature table. Drops the triggers, RTree table, and deletes the extension.- Parameters:
featureTable
- feature table
-
delete
public void delete(String tableName, String geometryColumnName)
Delete the RTree Index extension for the table and geometry column. Drops the triggers, RTree table, and deletes the extension.- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
delete
public void delete(String tableName)
Delete all RTree Index extensions for the table. Drops the triggers, RTree tables, and deletes the extensions.- Parameters:
tableName
- table name- Since:
- 3.2.0
-
deleteAll
public void deleteAll()
Delete all RTree Index extensions. Drops the triggers, RTree tables, and deletes the extensions.- Since:
- 3.2.0
-
drop
public void drop(FeatureTable featureTable)
Drop the the triggers and RTree table for the feature table- Parameters:
featureTable
- feature table
-
drop
public void drop(String tableName, String geometryColumnName)
Drop the the triggers and RTree table for the table and geometry column- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropRTreeIndex
public void dropRTreeIndex(FeatureTable featureTable)
Drop the RTree Index Virtual Table- Parameters:
featureTable
- feature table
-
dropRTreeIndex
public void dropRTreeIndex(String tableName, String geometryColumnName)
Drop the RTree Index Virtual Table- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropTriggers
public void dropTriggers(FeatureTable featureTable)
Check if the feature table has the RTree extension and if found, drop the triggers- Parameters:
featureTable
- feature table
-
dropTriggers
public boolean dropTriggers(String tableName, String columnName)
Check if the table and column has the RTree extension and if found, drop the triggers- Parameters:
tableName
- table namecolumnName
- column name- Returns:
- true if dropped
-
dropAllTriggers
public void dropAllTriggers(FeatureTable featureTable)
Drop Triggers that Maintain Spatial Index Values- Parameters:
featureTable
- feature table
-
dropAllTriggers
public void dropAllTriggers(String tableName, String geometryColumnName)
Drop Triggers that Maintain Spatial Index Values- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropInsertTrigger
public void dropInsertTrigger(String tableName, String geometryColumnName)
Drop insert trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate1Trigger
public void dropUpdate1Trigger(String tableName, String geometryColumnName)
Drop update 1 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate2Trigger
public void dropUpdate2Trigger(String tableName, String geometryColumnName)
Drop update 2 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate3Trigger
public void dropUpdate3Trigger(String tableName, String geometryColumnName)
Drop update 3 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate4Trigger
public void dropUpdate4Trigger(String tableName, String geometryColumnName)
Drop update 4 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate5Trigger
public void dropUpdate5Trigger(String tableName, String geometryColumnName)
Drop update 5 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate6Trigger
public void dropUpdate6Trigger(String tableName, String geometryColumnName)
Drop update 6 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropUpdate7Trigger
public void dropUpdate7Trigger(String tableName, String geometryColumnName)
Drop update 7 trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropDeleteTrigger
public void dropDeleteTrigger(String tableName, String geometryColumnName)
Drop delete trigger- Parameters:
tableName
- table namegeometryColumnName
- geometry column name
-
dropTrigger
public void dropTrigger(String tableName, String geometryColumnName, String triggerName)
Drop the trigger for the table, geometry column, and trigger name- Parameters:
tableName
- table namegeometryColumnName
- geometry column nametriggerName
- trigger name
-
executeSQL
protected void executeSQL(String sql, boolean trigger)
Execute the SQL statement- Parameters:
sql
- SQL statementtrigger
- true if a trigger statement- Since:
- 3.1.0
-
getEnvelope
protected GeometryEnvelope getEnvelope(GeoPackageGeometryData data)
Get or build a geometry envelope from the Geometry Data- Parameters:
data
- geometry data- Returns:
- geometry envelope
-
getRTreeTable
protected UserCustomTable getRTreeTable(FeatureTable featureTable)
Get the RTree Table- Parameters:
featureTable
- feature table- Returns:
- RTree table
-
-