Package mil.nga.geopackage.io
Class TileReader
- java.lang.Object
-
- mil.nga.geopackage.io.TileReader
-
public class TileReader extends Object
Read tiles from a file system directory into a GeoPackage file To run from command line, build with the standalone profile: mvn clean install -Pstandalone java -classpath geopackage-*-standalone.jar mil.nga.geopackage.io.TileReader +usage_arguments- Author:
- osbornb
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARGUMENT_IMAGE_FORMAT
Image Format argumentstatic String
ARGUMENT_PREFIX
Argument prefixstatic String
ARGUMENT_RAW_IMAGE
Raw image argumentstatic String
DEFAULT_IMAGE_FORMAT
Default image formatstatic TileFormatType
DEFAULT_TILE_TYPE
Default tile type
-
Constructor Summary
Constructors Constructor Description TileReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main method to read tiles from the file system into a GeoPackagestatic void
readTiles(File geoPackageFile, String tileTable, File directory, String imageFormat, TileFormatType tileType, boolean rawImage)
Read the tiles in the directory into the GeoPackage file tablestatic void
readTiles(GeoPackage geoPackage, String tileTable, File directory, String imageFormat, TileFormatType tileType, boolean rawImage)
Read the tiles in the directory into the GeoPackage file table
-
-
-
Field Detail
-
ARGUMENT_PREFIX
public static final String ARGUMENT_PREFIX
Argument prefix- 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
-
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 read tiles from the file system into a GeoPackage- Parameters:
args
- arguments- Throws:
Exception
- upon failure
-
readTiles
public static void readTiles(File geoPackageFile, String tileTable, File directory, String imageFormat, TileFormatType tileType, boolean rawImage) throws IOException, SQLException
Read the tiles in the directory into the GeoPackage file table- Parameters:
geoPackageFile
- GeoPackage filetileTable
- tile tabledirectory
- input directoryimageFormat
- image formattileType
- tile typerawImage
- use raw image flag- Throws:
IOException
- upon failureSQLException
- upon failure
-
readTiles
public static void readTiles(GeoPackage geoPackage, String tileTable, File directory, String imageFormat, TileFormatType tileType, boolean rawImage) throws IOException, SQLException
Read the tiles in the directory into the GeoPackage file table- Parameters:
geoPackage
- open GeoPackagetileTable
- tile tabledirectory
- output directoryimageFormat
- image formattileType
- tile typerawImage
- use raw image flag- Throws:
IOException
- upon failureSQLException
- upon failure
-
-