public class Export2Shp
extends java.lang.Object
| Constructor and Description |
|---|
Export2Shp() |
| Modifier and Type | Method and Description |
|---|---|
static void |
export(Config conf,
org.geotools.feature.FeatureCollection fc,
java.lang.String file)
Method to export spatial data to shapefile.
|
static void |
export2GeoJSON(org.geotools.feature.FeatureCollection fc,
java.lang.String file)
Method to export GeoJSON.
|
public static void export2GeoJSON(org.geotools.feature.FeatureCollection fc,
java.lang.String file)
throws java.io.IOException
fc - FeatureCollection to be exportedfile - File name/pathjava.io.IOExceptionpublic static void export(Config conf, org.geotools.feature.FeatureCollection fc, java.lang.String file) throws java.io.IOException, org.geotools.feature.SchemaException
conf - Configurationfc - FeatureCollection to be exportedfile - File name/pathjava.io.IOExceptionorg.geotools.feature.SchemaException