public class ST_OSMDownloader
extends org.h2gis.api.AbstractFunction
implements org.h2gis.api.ScalarFunction
| Constructor and Description |
|---|
ST_OSMDownloader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadData(Connection con,
org.locationtech.jts.geom.Geometry area,
String fileName) |
static void |
downloadData(Connection con,
org.locationtech.jts.geom.Geometry area,
String fileName,
boolean deleteFile) |
static void |
downloadOSMFile(File file,
org.locationtech.jts.geom.Envelope geometryEnvelope)
Download OSM file from the official server
|
String |
getJavaStaticMethod() |
addProperty, getProperty, removePropertypublic String getJavaStaticMethod()
getJavaStaticMethod in interface org.h2gis.api.ScalarFunctionpublic static void downloadData(Connection con, org.locationtech.jts.geom.Geometry area, String fileName) throws FileNotFoundException, IOException, SQLException, org.cts.op.CoordinateOperationException
con - the database connectionarea - The geometry used to compute the area set to the OSM serverfileName - The path to save the osm fileFileNotFoundExceptionIOExceptionSQLExceptionorg.cts.op.CoordinateOperationExceptionpublic static void downloadData(Connection con, org.locationtech.jts.geom.Geometry area, String fileName, boolean deleteFile) throws FileNotFoundException, IOException, SQLException, org.cts.op.CoordinateOperationException
con - the database connectionarea - The geometry used to compute the area set to the OSM serverfileName - The path to save the osm filedeleteFile - True to delete the file if existsFileNotFoundExceptionIOExceptionSQLExceptionorg.cts.op.CoordinateOperationExceptionpublic static void downloadOSMFile(File file, org.locationtech.jts.geom.Envelope geometryEnvelope) throws IOException
file - geometryEnvelope - IOExceptionCopyright © 2019 CNRS. All rights reserved.