Class RTreeIndexTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.rtreeindex.RTreeIndexTests
Defines test methods that apply to descriptive information about a GeoPackage's RTree
 Index Extension.
 
Sources
- GeoPackage Encoding Standard - Annex F.3 RTree Spatial Index (OGC 12-128r14)
- Author:
- Jeff Yutzler
- 
Field SummaryFields inherited from class org.opengis.cite.gpkg12.CommonFixturedatabaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidA GeoPackage SHALL implement spatial indexes on feature table geometry columns using the SQLite Virtual Table RTrees and triggers specified below.voidA GeoPackage that implements spatial indexes SHALL have a `gpkg_extensions` table that contains a row for each spatially indexed column with `extension_name` "gpkg_rtree_index", the `table_name` of the table with a spatially indexed column, the `column_name` of the spatially indexed column, and a `scope` of "write-only".voidsetUp()Sets up variables used across methodsvoidvalidateExtensionPresent(org.testng.ITestContext testContext) The "gpkg_rtree_index" extension name SHALL be used as a gpkg_extensions table extension_name column value to specify implementation of spatial indexes on a geometry column.Methods inherited from class org.opengis.cite.gpkg12.CommonFixturecheckPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
- 
Constructor Details- 
RTreeIndexTestspublic RTreeIndexTests()
 
- 
- 
Method Details- 
validateExtensionPresent@BeforeClass public void validateExtensionPresent(org.testng.ITestContext testContext) throws SQLException The "gpkg_rtree_index" extension name SHALL be used as a gpkg_extensions table extension_name column value to specify implementation of spatial indexes on a geometry column.- Parameters:
- testContext- the ITestContext to use
- Throws:
- SQLException- on any error
- See Also:
 
- 
setUpSets up variables used across methods- Throws:
- SQLException- if there is a database error
 
- 
extensionsTableRowsA GeoPackage that implements spatial indexes SHALL have a `gpkg_extensions` table that contains a row for each spatially indexed column with `extension_name` "gpkg_rtree_index", the `table_name` of the table with a spatially indexed column, the `column_name` of the spatially indexed column, and a `scope` of "write-only".- Throws:
- SQLException- on any error
- See Also:
 
- 
extensionIndexImplementationA GeoPackage SHALL implement spatial indexes on feature table geometry columns using the SQLite Virtual Table RTrees and triggers specified below. The tables below contain SQL templates with variables. Replace the following template variables with the specified values to create the required SQL statements: <t>: The name of the feature table containing the geometry column <c>: The name of the geometry column in <t> that is being indexed <i>: The name of the integer primary key column in <t> as specified in [r29]- Throws:
- SQLException- on any error
- See Also:
 
 
-