Package org.opengis.cite.gpkg12.core
Class SpatialReferenceSystemsTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.core.SpatialReferenceSystemsTests
Defines test methods that apply to spatial reference systems defined in a GeoPackage.
The coordinate reference systems relate feature geometries and tile images in user
tables to locations on the Earth.
Sources
- Author:
- Luke Lambert
-
Field Summary
Fields inherited from class org.opengis.cite.gpkg12.CommonFixture
databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Thegpkg_spatial_ref_sys
table in a GeoPackage SHALL contain records to define all spatial reference systems used by features and tiles in a GeoPackage.protected void
checkContentSrs
(String types) void
Thegpkg_spatial_ref_sys
table in a GeoPackage SHALL contain a record for organization EPSG or epsg andorganization_coordsys_id
4326 for WGS-84, a record with ansrs_id
of -1, an organization of "NONE", anorganization_coordsys_id
of -1, and definition "undefined" for undefined Cartesian coordinate reference systems, and a record with ansrs_id
of 0, an organization of "NONE", anorganization_coordsys_id
of 0, and definition "undefined" for undefined geographic coordinate reference systems.void
A GeoPackage SHALL include agpkg_spatial_ref_sys
table per clause 1.1.2.1.1 Table Definition, Table Spatial Ref Sys Table Definition and Table gpkg_spatial_ref_sys Table Definition SQL.Methods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Constructor Details
-
SpatialReferenceSystemsTests
public SpatialReferenceSystemsTests()
-
-
Method Details
-
srsTableDefinition
A GeoPackage SHALL include agpkg_spatial_ref_sys
table per clause 1.1.2.1.1 Table Definition, Table Spatial Ref Sys Table Definition and Table gpkg_spatial_ref_sys Table Definition SQL.- Throws:
SQLException
- If an SQL query causes an error- See Also:
-
requiredSrsEntries
Thegpkg_spatial_ref_sys
table in a GeoPackage SHALL contain a record for organization EPSG or epsg andorganization_coordsys_id
4326 for WGS-84, a record with ansrs_id
of -1, an organization of "NONE", anorganization_coordsys_id
of -1, and definition "undefined" for undefined Cartesian coordinate reference systems, and a record with ansrs_id
of 0, an organization of "NONE", anorganization_coordsys_id
of 0, and definition "undefined" for undefined geographic coordinate reference systems.- Throws:
SQLException
- If an SQL query causes an error- See Also:
-
checkContentSrs
Thegpkg_spatial_ref_sys
table in a GeoPackage SHALL contain records to define all spatial reference systems used by features and tiles in a GeoPackage.- Throws:
SQLException
- If an SQL query causes an error- See Also:
-
checkContentSrs
- Throws:
SQLException
-