org.h2gis.drivers.geojson
Class GeoJsonReaderDriver
java.lang.Object
org.h2gis.drivers.geojson.GeoJsonReaderDriver
public class GeoJsonReaderDriver
- extends Object
Driver to import a GeoJSON file into a spatial table.
Supported geometries are POINT, LINESTRING, POLYGON and GEOMETRYCOLLECTION.
The driver requires all Feature objects in a collection to have the same
schema of properties. To build the table schema the first feature of the
FeatureCollection is parsed. If the GeoJSON format does not contain any
properties, a default primary key is added.
- Author:
- Erwan Bocher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoJsonReaderDriver
public GeoJsonReaderDriver(Connection connection,
String tableName,
File fileName)
- Driver to import a GeoJSON file into a spatial table.
- Parameters:
connection - tableName - fileName -
read
public void read(ProgressVisitor progress)
throws SQLException,
IOException
- Read the GeoJSON file.
- Parameters:
progress -
- Throws:
SQLException
IOException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.