Package mil.nga.geopackage.extension
Class GeometryExtensions
- java.lang.Object
-
- mil.nga.geopackage.extension.BaseExtension
-
- mil.nga.geopackage.extension.GeometryExtensions
-
public class GeometryExtensions extends BaseExtension
Geometry Extensions utility methods and constants- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
GEOMETRY_TYPES_EXTENSION_DEFINITION
Geometry Types Extension definition URLstatic 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.-
Fields inherited from class mil.nga.geopackage.extension.BaseExtension
extensionsDao, geoPackage
-
-
Constructor Summary
Constructors Constructor Description GeometryExtensions(GeoPackageCore geoPackage)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.static String
getExtensionName(GeometryType geometryType)
Get the extension name of a GeoPackage extension GeometryExtensions
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.Extensions
getOrCreate(String tableName, String columnName, GeometryType geometryType)
Get or create the extension, non-linear geometry typeboolean
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.boolean
has(String tableName, String columnName, GeometryType geometryType)
Determine if the GeoPackage has the extension, non-linear geometry typestatic boolean
isExtension(GeometryType geometryType)
Determine if the geometry type is an extensionstatic boolean
isGeoPackageExtension(GeometryType geometryType)
Determine if the geometry type is a GeoPackage extensionstatic boolean
isNonStandard(GeometryType geometryType)
Determine if the geometry type is non standard-
Methods inherited from class mil.nga.geopackage.extension.BaseExtension
createDao, get, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, has, verifyWritable
-
-
-
-
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 namecolumnName
- column namegeometryType
- 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 namecolumnName
- column namegeometryType
- 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 namecolumnName
- column nameauthor
- user defined authorgeometryType
- 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 namecolumnName
- column nameauthor
- user defined authorgeometryType
- 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
- authorgeometryType
- geometry type- Returns:
- extension name
-
-