Class 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
    • Constructor Detail

      • TileReader

        public TileReader()
    • 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 file
        tileTable - tile table
        directory - input directory
        imageFormat - image format
        tileType - tile type
        rawImage - use raw image flag
        Throws:
        IOException - upon failure
        SQLException - 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 GeoPackage
        tileTable - tile table
        directory - output directory
        imageFormat - image format
        tileType - tile type
        rawImage - use raw image flag
        Throws:
        IOException - upon failure
        SQLException - upon failure