org.h2gis.drivers.osm
Class ST_OSMDownloader
java.lang.Object
org.h2gis.h2spatialapi.AbstractFunction
org.h2gis.h2spatialapi.DeterministicScalarFunction
org.h2gis.drivers.osm.ST_OSMDownloader
- All Implemented Interfaces:
- Function, ScalarFunction
public class ST_OSMDownloader
- extends DeterministicScalarFunction
This function is used to download data from the osm api using a bounding box.
- Author:
- Erwan Bocher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ST_OSMDownloader
public ST_OSMDownloader()
getJavaStaticMethod
public String getJavaStaticMethod()
downloadData
public static void downloadData(com.vividsolutions.jts.geom.Geometry area,
String fileName)
throws FileNotFoundException,
IOException
- Parameters:
area - The geometry used to compute the area set to the OSM serverfileName - The path to save the osm file
- Throws:
FileNotFoundException
IOException
downloadOSMFile
public static void downloadOSMFile(File file,
com.vividsolutions.jts.geom.Envelope geometryEnvelope)
throws IOException
- Download OSM file from the official server
- Parameters:
file - geometryEnvelope -
- Throws:
IOException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.