public class GeoJSONReader extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOMETRY_NAME
GEOMETRY_NAME
|
| Constructor and Description |
|---|
GeoJSONReader(InputStream is) |
GeoJSONReader(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SimpleFeatureCollection |
getFeatures() |
FeatureIterator<SimpleFeature> |
getIterator() |
FeatureType |
getSchema() |
boolean |
isConnected() |
boolean |
isSchemaChanged() |
static SimpleFeature |
parseFeature(String json) |
static SimpleFeatureCollection |
parseFeatureCollection(String jsonString) |
static Geometry |
parseGeometry(String input) |
void |
setSchema(SimpleFeatureType schema) |
void |
setSchemaChanged(boolean schemaChanged) |
public static final String GEOMETRY_NAME
public GeoJSONReader(URL url) throws IOException
IOExceptionpublic GeoJSONReader(InputStream is) throws IOException
IOExceptionpublic boolean isConnected()
public static SimpleFeature parseFeature(String json) throws JsonParseException, IOException
JsonParseExceptionIOExceptionpublic static SimpleFeatureCollection parseFeatureCollection(String jsonString)
jsonString - public static Geometry parseGeometry(String input)
input - public SimpleFeatureCollection getFeatures() throws IOException
IOExceptionpublic FeatureIterator<SimpleFeature> getIterator() throws IOException
IOExceptionpublic FeatureType getSchema() throws IOException
IOExceptionpublic void setSchema(SimpleFeatureType schema)
schema - the schema to setpublic boolean isSchemaChanged()
public void setSchemaChanged(boolean schemaChanged)
schemaChanged - the schemaChanged to setpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 1996–2021 Geotools. All rights reserved.