Package mil.nga.geopackage.dgiwg
Class DGIWGValidate
- java.lang.Object
-
- mil.nga.geopackage.dgiwg.DGIWGValidate
-
public class DGIWGValidate extends Object
Performs DGIWG (Defence Geospatial Information Working Group) GeoPackage validations- Since:
- 6.6.0
- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static double
TILE_MATRIX_SET_BOUNDS_TOLERANCE
Tile Matrix Set bounds tolerance in meters.
-
Constructor Summary
Constructors Constructor Description DGIWGValidate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(GeoPackageCore geoPackage)
Is the GeoPackage valid according to the DGIWG GeoPackage Profilestatic DGIWGValidationErrors
validate(GeoPackageCore geoPackage)
Validate the GeoPackage against the DGIWG GeoPackage Profilestatic DGIWGValidationErrors
validate(GeoPackageCore geoPackage, String table)
Validate the GeoPackage table against the DGIWG GeoPackage Profilestatic DGIWGValidationErrors
validate(GeoPackageCore geoPackage, List<String> tables)
Validate the GeoPackage tables against the DGIWG GeoPackage Profilestatic DGIWGValidationErrors
validateBase(GeoPackageCore geoPackage)
Validate the base GeoPackage against the DGIWG GeoPackage Profilestatic DGIWGValidationErrors
validateFeatureCoordinateReferenceSystem(String featureTable, SpatialReferenceSystem srs)
Validate the feature coordinate reference systemstatic DGIWGValidationErrors
validateFeatureCoordinateReferenceSystem(String featureTable, SpatialReferenceSystem srs, int z)
Validate the feature coordinate reference systemstatic DGIWGValidationErrors
validateFeatureTable(GeoPackageCore geoPackage, String featureTable)
Validate feature tablestatic DGIWGValidationErrors
validateMetadata(GeoPackageCore geoPackage)
Validate the GeoPackage metadatastatic DGIWGValidationErrors
validateTileCoordinateReferenceSystem(String tileTable, SpatialReferenceSystem srs)
Validate the tile coordinate reference systemstatic DGIWGValidationErrors
validateTileTable(GeoPackageCore geoPackage, String tileTable)
Validate tile table
-
-
-
Field Detail
-
TILE_MATRIX_SET_BOUNDS_TOLERANCE
public static final double TILE_MATRIX_SET_BOUNDS_TOLERANCE
Tile Matrix Set bounds tolerance in meters. 1 meter as defined in "Conformance Class Bounding Box (bbox)".- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public static boolean isValid(GeoPackageCore geoPackage)
Is the GeoPackage valid according to the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackage- Returns:
- true if valid
-
validate
public static DGIWGValidationErrors validate(GeoPackageCore geoPackage)
Validate the GeoPackage against the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackage- Returns:
- validation errors
-
validateBase
public static DGIWGValidationErrors validateBase(GeoPackageCore geoPackage)
Validate the base GeoPackage against the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackage- Returns:
- validation errors
-
validate
public static DGIWGValidationErrors validate(GeoPackageCore geoPackage, String table)
Validate the GeoPackage table against the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackagetable
- table- Returns:
- validation errors
-
validate
public static DGIWGValidationErrors validate(GeoPackageCore geoPackage, List<String> tables)
Validate the GeoPackage tables against the DGIWG GeoPackage Profile- Parameters:
geoPackage
- GeoPackagetables
- tables- Returns:
- validation errors
-
validateMetadata
public static DGIWGValidationErrors validateMetadata(GeoPackageCore geoPackage)
Validate the GeoPackage metadata- Parameters:
geoPackage
- GeoPackage- Returns:
- validation errors
-
validateTileTable
public static DGIWGValidationErrors validateTileTable(GeoPackageCore geoPackage, String tileTable)
Validate tile table- Parameters:
geoPackage
- GeoPackagetileTable
- tile table- Returns:
- validation errors
-
validateTileCoordinateReferenceSystem
public static DGIWGValidationErrors validateTileCoordinateReferenceSystem(String tileTable, SpatialReferenceSystem srs)
Validate the tile coordinate reference system- Parameters:
tileTable
- tile tablesrs
- spatial reference system- Returns:
- validation errors
-
validateFeatureTable
public static DGIWGValidationErrors validateFeatureTable(GeoPackageCore geoPackage, String featureTable)
Validate feature table- Parameters:
geoPackage
- GeoPackagefeatureTable
- feature table- Returns:
- validation errors
-
validateFeatureCoordinateReferenceSystem
public static DGIWGValidationErrors validateFeatureCoordinateReferenceSystem(String featureTable, SpatialReferenceSystem srs)
Validate the feature coordinate reference system- Parameters:
featureTable
- feature tablesrs
- spatial reference system- Returns:
- validation errors
-
validateFeatureCoordinateReferenceSystem
public static DGIWGValidationErrors validateFeatureCoordinateReferenceSystem(String featureTable, SpatialReferenceSystem srs, int z)
Validate the feature coordinate reference system- Parameters:
featureTable
- feature tablesrs
- spatial reference systemz
- geometry z value- Returns:
- validation errors
- Since:
- 6.6.4
-
-