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 String
ARGUMENT_IMAGE_FORMAT
Image Format argumentstatic String
ARGUMENT_IMAGE_HEIGHT
Image height argumentstatic String
ARGUMENT_IMAGE_WIDTH
Image width argumentstatic String
ARGUMENT_PREFIX
Argument prefixstatic String
ARGUMENT_RAW_IMAGE
Raw image argumentstatic String
ARGUMENT_TILE_TYPE
Tile Type argumentstatic String
DEFAULT_IMAGE_FORMAT
Default image formatstatic TileFormatType
DEFAULT_TILE_TYPE
Default tile type
-
Constructor Summary
Constructors Constructor Description TileWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main method to write tiles from a GeoPackagestatic void
writeTiles(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 void
writeTiles(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
-
-