Package org.h2gis.functions.io.overpass
Class ST_OverpassDownloader
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.overpass.ST_OverpassDownloader
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_OverpassDownloader extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionA function to extract data from Overpass api and save it into a file- Author:
- E. Bocher, CNRS
-
-
Constructor Summary
Constructors Constructor Description ST_OverpassDownloader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexecute(String overpassQuery, String fileName)Extract OSM DATAstatic voidexecute(String overpassQuery, String fileName, boolean deleteFile)Extract OSM DATAstatic voidexecute(String overpassQuery, String fileName, boolean deleteFile, String options)Extract OSM DATAStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
execute
public static void execute(String overpassQuery, String fileName) throws Exception
Extract OSM DATA- Parameters:
overpassQuery- the overpass queryfileName- the output file- Throws:
Exception
-
execute
public static void execute(String overpassQuery, String fileName, boolean deleteFile) throws Exception
Extract OSM DATA- Parameters:
overpassQuery- the overpass queryfileName- the output filedeleteFile- true to delete the file if exists- Throws:
Exception
-
execute
public static void execute(String overpassQuery, String fileName, boolean deleteFile, String options) throws Exception
Extract OSM DATA- Parameters:
overpassQuery- the overpass queryfileName- the output filedeleteFile- true to delete the file if existsoptions- network options as proxyhost=? proxyport=? endpoint=?- Throws:
Exception
-
-