Class GeometryExtensions

    • Field Detail

      • GEOMETRY_TYPES_EXTENSION_DEFINITION

        public static final String GEOMETRY_TYPES_EXTENSION_DEFINITION
        Geometry Types Extension definition URL
        Since:
        1.1.8
      • USER_GEOMETRY_TYPES_EXTENSION_DEFINITION

        public static final String USER_GEOMETRY_TYPES_EXTENSION_DEFINITION
        Deprecated.
        as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)
        User Geometry Types Extension definition URL
        Since:
        1.1.8
    • Constructor Detail

      • GeometryExtensions

        public GeometryExtensions​(GeoPackageCore geoPackage)
        Constructor
        Parameters:
        geoPackage - GeoPackage
        Since:
        1.1.8
    • Method Detail

      • getOrCreate

        public Extensions getOrCreate​(String tableName,
                                      String columnName,
                                      GeometryType geometryType)
        Get or create the extension, non-linear geometry type
        Parameters:
        tableName - table name
        columnName - column name
        geometryType - geometry type
        Returns:
        extension
        Since:
        1.1.8
      • has

        public boolean has​(String tableName,
                           String columnName,
                           GeometryType geometryType)
        Determine if the GeoPackage has the extension, non-linear geometry type
        Parameters:
        tableName - table name
        columnName - column name
        geometryType - geometry type
        Returns:
        true if has extension
        Since:
        1.1.8
      • isExtension

        public static boolean isExtension​(GeometryType geometryType)
        Determine if the geometry type is an extension
        Parameters:
        geometryType - geometry type
        Returns:
        true if extension
      • isNonStandard

        public static boolean isNonStandard​(GeometryType geometryType)
        Determine if the geometry type is non standard
        Parameters:
        geometryType - geometry type
        Returns:
        true if non standard
        Since:
        2.0.1
      • isGeoPackageExtension

        public static boolean isGeoPackageExtension​(GeometryType geometryType)
        Determine if the geometry type is a GeoPackage extension
        Parameters:
        geometryType - geometry type
        Returns:
        true if a GeoPackage extension, false if user-defined
      • getExtensionName

        public static String getExtensionName​(GeometryType geometryType)
        Get the extension name of a GeoPackage extension Geometry
        Parameters:
        geometryType - geometry type
        Returns:
        extension name
      • getOrCreate

        public Extensions getOrCreate​(String tableName,
                                      String columnName,
                                      String author,
                                      GeometryType geometryType)
        Deprecated.
        as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)
        Get or create the extension, user defined geometry type
        Parameters:
        tableName - table name
        columnName - column name
        author - user defined author
        geometryType - geometry type
        Returns:
        extension
        Since:
        1.1.8
      • has

        public boolean has​(String tableName,
                           String columnName,
                           String author,
                           GeometryType geometryType)
        Deprecated.
        as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)
        Determine if the GeoPackage has the extension, user defined geometry type
        Parameters:
        tableName - table name
        columnName - column name
        author - user defined author
        geometryType - geometry type
        Returns:
        true if has extension
        Since:
        1.1.8
      • getExtensionName

        public static String getExtensionName​(String author,
                                              GeometryType geometryType)
        Deprecated.
        as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)
        Get the extension name of a extension Geometry, either user-defined or GeoPackage extension
        Parameters:
        author - author
        geometryType - geometry type
        Returns:
        extension name