org.h2gis.drivers.gpx
Class GPXRead

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

public class GPXRead
extends AbstractFunction
implements ScalarFunction

SQL Function to copy GPX File data into a 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
GPXRead()
           
 
Method Summary
 String getJavaStaticMethod()
           
static void readGPX(Connection connection, String fileName)
          Copy data from GPX File into a new table in specified connection.
static void readGPX(Connection connection, String fileName, String tableReference)
          Copy data from GPX File into a new table in specified connection.
 
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

GPXRead

public GPXRead()
Method Detail

getJavaStaticMethod

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

readGPX

public static void readGPX(Connection connection,
                           String fileName,
                           String tableReference)
                    throws IOException,
                           SQLException
Copy data from GPX File into a new table in specified connection.

Parameters:
connection - Active connection
tableReference - [[catalog.]schema.]table reference
fileName - File path of the SHP file
Throws:
IOException
SQLException

readGPX

public static void readGPX(Connection connection,
                           String fileName)
                    throws IOException,
                           SQLException
Copy data from GPX File into a new table in specified connection.

Parameters:
connection -
fileName -
Throws:
IOException
SQLException


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