Package mil.nga.geopackage.dgiwg
Class DGIWGGeoPackageUtils
- java.lang.Object
-
- mil.nga.geopackage.dgiwg.DGIWGGeoPackageUtils
-
public class DGIWGGeoPackageUtils extends Object
DGIWG (Defence Geospatial Information Working Group) GeoPackage utilities- Since:
- 6.6.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description DGIWGGeoPackageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeometryColumns
createFeatures(GeoPackageCore geoPackage, String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs)
Create features tablestatic MetadataReference
createGeoPackageDatasetMetadata(GeoPackageCore geoPackage, String uri, String metadata)
Create GeoPackage metadata with a dataset scope and metadata referencestatic MetadataReference
createGeoPackageMetadata(GeoPackageCore geoPackage, MetadataScopeType scope, String uri, String metadata)
Create GeoPackage metadata and metadata referencestatic MetadataReference
createGeoPackageSeriesMetadata(GeoPackageCore geoPackage, String uri, String metadata)
Create GeoPackage metadata with a series scope and metadata referencestatic void
createMetadata(GeoPackageCore geoPackage, Metadata metadata)
Create metadatastatic void
createMetadata(GeoPackageCore geoPackage, Metadata metadata, MetadataReference reference)
Create metadata and metadata referencestatic MetadataReference
createMetadata(GeoPackageCore geoPackage, MetadataScopeType scope, String uri, String metadata, MetadataReference reference)
Create metadata and metadata referencestatic void
createMetadataReference(GeoPackageCore geoPackage, Metadata metadata, MetadataReference reference)
Create metadata referencestatic void
createMetadataReference(GeoPackageCore geoPackage, MetadataReference reference)
Create metadata referencestatic void
createTileMatrices(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, long minZoom, long maxZoom, long matrixWidth, long matrixHeight)
Create tile matrices for zoom levelsstatic void
createTileMatrices(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight)
Create tile matrices for zoom levelsstatic void
createTileMatrix(GeoPackageCore geoPackage, String table, long zoom, long matrixWidth, long matrixHeight, double pixelXSize, double pixelYSize)
Create a tile matrix for a zoom levelstatic void
createTileMatrix(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, long zoom, long matrixWidth, long matrixHeight)
Create a tile matrix for a zoom levelstatic TileMatrixSet
createTiles(GeoPackageCore geoPackage, String table, String identifier, String description, BoundingBox informativeBounds, SpatialReferenceSystem srs, BoundingBox extentBounds)
Create tiles tablestatic String
wrapIfEmptyOrContainsWhitespace(String value)
Wrap the value in single quotes if an empty string or contains whitespace
-
-
-
Method Detail
-
createTiles
public static TileMatrixSet createTiles(GeoPackageCore geoPackage, String table, String identifier, String description, BoundingBox informativeBounds, SpatialReferenceSystem srs, BoundingBox extentBounds)
Create tiles table- Parameters:
geoPackage
- GeoPackagetable
- table nameidentifier
- contents identifierdescription
- contents descriptioninformativeBounds
- informative contents boundssrs
- spatial reference systemextentBounds
- crs extent bounds- Returns:
- created tile matrix set
-
createTileMatrices
public static void createTileMatrices(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, long minZoom, long maxZoom, long matrixWidth, long matrixHeight)
Create tile matrices for zoom levels- Parameters:
geoPackage
- GeoPackagetable
- table nameboundingBox
- bounding boxminZoom
- min zoom levelmaxZoom
- max zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrices
public static void createTileMatrices(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, Collection<Long> zoomLevels, long matrixWidth, long matrixHeight)
Create tile matrices for zoom levels- Parameters:
geoPackage
- GeoPackagetable
- table nameboundingBox
- bounding boxzoomLevels
- zoom levelsmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrix
public static void createTileMatrix(GeoPackageCore geoPackage, String table, BoundingBox boundingBox, long zoom, long matrixWidth, long matrixHeight)
Create a tile matrix for a zoom level- Parameters:
geoPackage
- GeoPackagetable
- table nameboundingBox
- bounding boxzoom
- zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix height
-
createTileMatrix
public static void createTileMatrix(GeoPackageCore geoPackage, String table, long zoom, long matrixWidth, long matrixHeight, double pixelXSize, double pixelYSize)
Create a tile matrix for a zoom level- Parameters:
geoPackage
- GeoPackagetable
- table namezoom
- zoom levelmatrixWidth
- matrix widthmatrixHeight
- matrix heightpixelXSize
- pixel x sizepixelYSize
- pixel y size
-
createFeatures
public static GeometryColumns createFeatures(GeoPackageCore geoPackage, String table, String identifier, String description, BoundingBox bounds, GeometryType geometryType, DataType dataType, List<FeatureColumn> columns, SpatialReferenceSystem srs)
Create features table- Parameters:
geoPackage
- GeoPackagetable
- table nameidentifier
- contents identifierdescription
- contents descriptionbounds
- contents boundsgeometryType
- geometry typedataType
- data typecolumns
- feature columnssrs
- spatial reference system- Returns:
- created tile matrix set
-
createMetadata
public static void createMetadata(GeoPackageCore geoPackage, Metadata metadata, MetadataReference reference)
Create metadata and metadata reference- Parameters:
geoPackage
- GeoPackagemetadata
- metadatareference
- metadata reference
-
createMetadata
public static void createMetadata(GeoPackageCore geoPackage, Metadata metadata)
Create metadata- Parameters:
geoPackage
- GeoPackagemetadata
- metadata
-
createMetadataReference
public static void createMetadataReference(GeoPackageCore geoPackage, Metadata metadata, MetadataReference reference)
Create metadata reference- Parameters:
geoPackage
- GeoPackagemetadata
- the reference metadatareference
- metadata reference
-
createMetadataReference
public static void createMetadataReference(GeoPackageCore geoPackage, MetadataReference reference)
Create metadata reference- Parameters:
geoPackage
- GeoPackagereference
- metadata reference
-
createGeoPackageSeriesMetadata
public static MetadataReference createGeoPackageSeriesMetadata(GeoPackageCore geoPackage, String uri, String metadata)
Create GeoPackage metadata with a series scope and metadata reference- Parameters:
geoPackage
- GeoPackageuri
- URImetadata
- metadata- Returns:
- metadata reference
-
createGeoPackageDatasetMetadata
public static MetadataReference createGeoPackageDatasetMetadata(GeoPackageCore geoPackage, String uri, String metadata)
Create GeoPackage metadata with a dataset scope and metadata reference- Parameters:
geoPackage
- GeoPackageuri
- URImetadata
- metadata- Returns:
- metadata reference
-
createGeoPackageMetadata
public static MetadataReference createGeoPackageMetadata(GeoPackageCore geoPackage, MetadataScopeType scope, String uri, String metadata)
Create GeoPackage metadata and metadata reference- Parameters:
geoPackage
- GeoPackagescope
- metadata scope typeuri
- URImetadata
- metadata- Returns:
- metadata reference
-
createMetadata
public static MetadataReference createMetadata(GeoPackageCore geoPackage, MetadataScopeType scope, String uri, String metadata, MetadataReference reference)
Create metadata and metadata reference- Parameters:
geoPackage
- GeoPackagescope
- metadata scope typeuri
- URImetadata
- metadatareference
- metadata reference- Returns:
- metadata reference
-
-