org.h2gis.drivers.geojson
Class GeoJsonRead

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.drivers.geojson.GeoJsonRead
All Implemented Interfaces:
Function, ScalarFunction

public class GeoJsonRead
extends AbstractFunction
implements ScalarFunction

SQL function to read a GeoJSON file an creates the corresponding spatial table.

Author:
Erwan Bocher

Field Summary
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
GeoJsonRead()
           
 
Method Summary
 String getJavaStaticMethod()
           
static void readGeoJson(Connection connection, String fileName, String tableReference)
          Read the GeoJSON file.
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Constructor Detail

GeoJsonRead

public GeoJsonRead()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()
Specified by:
getJavaStaticMethod in interface ScalarFunction

readGeoJson

public static void readGeoJson(Connection connection,
                               String fileName,
                               String tableReference)
                        throws IOException,
                               SQLException
Read the GeoJSON file.

Parameters:
connection -
fileName -
tableReference -
Throws:
IOException
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.