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
IOException
public GeoJSONReader(InputStream is) throws IOException
IOException
public boolean isConnected()
public static SimpleFeature parseFeature(String json) throws JsonParseException, IOException
JsonParseException
IOException
public static SimpleFeatureCollection parseFeatureCollection(String jsonString)
jsonString
- public static Geometry parseGeometry(String input)
input
- public SimpleFeatureCollection getFeatures() throws IOException
IOException
public FeatureIterator<SimpleFeature> getIterator() throws IOException
IOException
public FeatureType getSchema() throws IOException
IOException
public 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 AutoCloseable
IOException
Copyright © 1996–2021 Geotools. All rights reserved.