public class JtsGeoJSONReader extends GeoJSONReader
Modifier and Type | Field and Description |
---|---|
protected JtsSpatialContext |
ctx |
BUFFER, BUFFER_UNITS
Constructor and Description |
---|
JtsGeoJSONReader(JtsSpatialContext ctx,
SpatialContextFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected Coordinate |
coord(List list) |
protected CoordinateSequence |
coordseq(List list) |
protected GeometryCollection |
createGeometryCollection(GeometryFactory gf,
List geoms) |
protected LineString |
createLineString(GeometryFactory gf,
List list) |
protected MultiLineString |
createMultiLineString(GeometryFactory gf,
List list) |
protected MultiPoint |
createMultiPoint(GeometryFactory gf,
List list) |
protected MultiPolygon |
createMultiPolygon(GeometryFactory gf,
List list) |
protected Point |
createPoint(GeometryFactory gf,
List list) |
protected Polygon |
createPolygon(GeometryFactory gf,
List list) |
protected List |
ensureSize(List list,
int size) |
protected Shape |
makeShapeFromCoords(String type,
List coords) |
protected double |
number(Object obj) |
Coordinate |
readCoord(org.noggit.JSONParser parser) |
List<Coordinate> |
readCoordList(org.noggit.JSONParser parser) |
protected Shape |
readPoint(org.noggit.JSONParser parser) |
protected Shape |
readPolygon(org.noggit.JSONParser parser)
This method takes a polygon and makes a bbox from it
NOTE: not currently used! polygon is currently implemented in:
GeoJSONReader.makeShapeFromCoords(String, List)
We could add a 'strict' or 'leinent' mode that would try the best it can |
getFormatName, read, read, readCircle, readCoordinates, readCoordListXY, readCoordXY, readDistance, readIfSupported, readLineString, readShape, readUntilEvent
protected final JtsSpatialContext ctx
public JtsGeoJSONReader(JtsSpatialContext ctx, SpatialContextFactory factory)
public Coordinate readCoord(org.noggit.JSONParser parser) throws IOException, ParseException
IOException
ParseException
public List<Coordinate> readCoordList(org.noggit.JSONParser parser) throws IOException, ParseException
IOException
ParseException
protected Shape readPoint(org.noggit.JSONParser parser) throws IOException, ParseException
readPoint
in class GeoJSONReader
IOException
ParseException
protected Shape readPolygon(org.noggit.JSONParser parser) throws IOException, ParseException
GeoJSONReader
GeoJSONReader.makeShapeFromCoords(String, List)
We could add a 'strict' or 'leinent' mode that would try the best it canreadPolygon
in class GeoJSONReader
ParseException
IOException
protected Shape makeShapeFromCoords(String type, List coords)
makeShapeFromCoords
in class GeoJSONReader
protected Point createPoint(GeometryFactory gf, List list)
protected LineString createLineString(GeometryFactory gf, List list)
protected Polygon createPolygon(GeometryFactory gf, List list)
protected MultiPoint createMultiPoint(GeometryFactory gf, List list)
protected MultiLineString createMultiLineString(GeometryFactory gf, List list)
protected MultiPolygon createMultiPolygon(GeometryFactory gf, List list)
protected GeometryCollection createGeometryCollection(GeometryFactory gf, List geoms)
protected Coordinate coord(List list)
protected CoordinateSequence coordseq(List list)
protected double number(Object obj)
Copyright © 2015. All rights reserved.