Package mil.nga.geopackage.io
Class TileWriter
- java.lang.Object
-
- mil.nga.geopackage.io.TileWriter
-
public class TileWriter extends Object
Writes the tiles from a GeoPackage tile table to a file system directory To run from command line, build with the standalone profile: mvn clean install -Pstandalone java -classpath geopackage-*-standalone.jar mil.nga.geopackage.io.TileWriter +usage_arguments- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static StringARGUMENT_IMAGE_FORMATImage Format argumentstatic StringARGUMENT_IMAGE_HEIGHTImage height argumentstatic StringARGUMENT_IMAGE_WIDTHImage width argumentstatic StringARGUMENT_PREFIXArgument prefixstatic StringARGUMENT_RAW_IMAGERaw image argumentstatic StringARGUMENT_TILE_TYPETile Type argumentstatic StringDEFAULT_IMAGE_FORMATDefault image formatstatic TileFormatTypeDEFAULT_TILE_TYPEDefault tile type
-
Constructor Summary
Constructors Constructor Description TileWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Main method to write tiles from a GeoPackagestatic voidwriteTiles(File geoPackageFile, String tileTable, File directory, String imageFormat, Integer width, Integer height, TileFormatType tileType, boolean rawImage)Write the tile table tile image set within the GeoPackage file to the provided directorystatic voidwriteTiles(GeoPackage geoPackage, String tileTable, File directory, String imageFormat, Integer width, Integer height, TileFormatType tileType, boolean rawImage)Write the tile table tile image set within the GeoPackage file to the provided directory
-
-
-
Field Detail
-
ARGUMENT_PREFIX
public static final String ARGUMENT_PREFIX
Argument prefix- See Also:
- Constant Field Values
-
ARGUMENT_TILE_TYPE
public static final String ARGUMENT_TILE_TYPE
Tile Type argument- See Also:
- Constant Field Values
-
ARGUMENT_IMAGE_FORMAT
public static final String ARGUMENT_IMAGE_FORMAT
Image Format argument- See Also:
- Constant Field Values
-
ARGUMENT_RAW_IMAGE
public static final String ARGUMENT_RAW_IMAGE
Raw image argument- See Also:
- Constant Field Values
-
ARGUMENT_IMAGE_WIDTH
public static final String ARGUMENT_IMAGE_WIDTH
Image width argument- See Also:
- Constant Field Values
-
ARGUMENT_IMAGE_HEIGHT
public static final String ARGUMENT_IMAGE_HEIGHT
Image height argument- See Also:
- Constant Field Values
-
DEFAULT_TILE_TYPE
public static final TileFormatType DEFAULT_TILE_TYPE
Default tile type
-
DEFAULT_IMAGE_FORMAT
public static final String DEFAULT_IMAGE_FORMAT
Default image format- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args) throws Exception
Main method to write tiles from a GeoPackage- Parameters:
args- arguments- Throws:
Exception- upon failure
-
writeTiles
public static void writeTiles(File geoPackageFile, String tileTable, File directory, String imageFormat, Integer width, Integer height, TileFormatType tileType, boolean rawImage) throws IOException
Write the tile table tile image set within the GeoPackage file to the provided directory- Parameters:
geoPackageFile- GeoPackage filetileTable- tile tabledirectory- output directoryimageFormat- image formatwidth- optional image widthheight- optional image heighttileType- tile typerawImage- use raw image flag- Throws:
IOException- upon failure- Since:
- 1.2.0
-
writeTiles
public static void writeTiles(GeoPackage geoPackage, String tileTable, File directory, String imageFormat, Integer width, Integer height, TileFormatType tileType, boolean rawImage) throws IOException
Write the tile table tile image set within the GeoPackage file to the provided directory- Parameters:
geoPackage- open GeoPackagetileTable- tile tabledirectory- output directoryimageFormat- image formatwidth- optional image widthheight- optional image heighttileType- tile typerawImage- use raw image flag- Throws:
IOException- upon failure- Since:
- 1.2.0
-
-