public class JDBCPGRasterConfigurationBuilder extends Object
The configuration may be specified in 2 different ways: 1) through an input string with the following format: pgraster://USER:PASS@HOST:PORT:DATABASE.SCHEMA.TABLE@EPSGCODE:*.FILE_EXTENSION?OPTIONS#/PATH/TO/RASTER_TILES/"
In this case, a JDBCPGRasterConfigurationBean instance will be created on top of this String. That String also contains the RASTER_TILES PATH representing the folder containing tiles previously created with gdal_retile. Note that gdal_retile will create tiles using that structure: - level 0 is put into the target dir - level i is put into subfolder i inside target dir
NOTE that -useDirForEachRow gdal option isn't currently supported by the importer.
FILE_EXTENSION and OPTIONS configuration properties are optional (in case the user did the tiles import on his own)
2) a JDBCPGRasterConfigurationBean instance. The input string simply contains the RASTER_TILES PATH on this case.
|Constructor and Description|
A configuration builder constructor
|Modifier and Type||Method and Description|
Check the availability of raster2pgsql command
Prepare the PGRaster configuration steps: - importing tiles into the DB and create metadata table if needed - prepare the URL of the XML configuration file and return that URL.
Check whether the raster2pgsql script is available
public static boolean isRaster2PgsqlAvailable()
public static void checkRaster2Pgsql()
The input url String may represent: - 1) the path of the folder containing tiles to be mosaicked, previously generated with gdal_retile. 2) an inline configuration specification in that form: pgraster://USER:PASS@HOST:PORT:DATABASE.SCHEMA.TABLE@EPSGCODE:*.FILE_EXTENSION?OPTIONS#/PATH/TO/RASTER_TILES/"
url- a String referring to the mosaic to be configured.
hints- hints containing a
JDBCPGrasterConfigurationBeanbean in case the url string doesn't specify the configuration params inline.
Copyright © 1996–2021 Geotools. All rights reserved.