Class DGIWGValidate


  • public class DGIWGValidate
    extends Object
    Performs DGIWG (Defence Geospatial Information Working Group) GeoPackage validations
    Since:
    6.6.0
    Author:
    osbornb
    • 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
    • Constructor Detail

      • DGIWGValidate

        public DGIWGValidate()
    • 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 - GeoPackage
        table - 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 - GeoPackage
        tables - 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 - GeoPackage
        tileTable - tile table
        Returns:
        validation errors
      • validateTileCoordinateReferenceSystem

        public static DGIWGValidationErrors validateTileCoordinateReferenceSystem​(String tileTable,
                                                                                  SpatialReferenceSystem srs)
        Validate the tile coordinate reference system
        Parameters:
        tileTable - tile table
        srs - spatial reference system
        Returns:
        validation errors
      • validateFeatureTable

        public static DGIWGValidationErrors validateFeatureTable​(GeoPackageCore geoPackage,
                                                                 String featureTable)
        Validate feature table
        Parameters:
        geoPackage - GeoPackage
        featureTable - feature table
        Returns:
        validation errors
      • validateFeatureCoordinateReferenceSystem

        public static DGIWGValidationErrors validateFeatureCoordinateReferenceSystem​(String featureTable,
                                                                                     SpatialReferenceSystem srs)
        Validate the feature coordinate reference system
        Parameters:
        featureTable - feature table
        srs - 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 table
        srs - spatial reference system
        z - geometry z value
        Returns:
        validation errors
        Since:
        6.6.4