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 com.vividsolutions.jts.geom.Coordinate |
coord(List list) |
protected com.vividsolutions.jts.geom.CoordinateSequence |
coordseq(List list) |
protected com.vividsolutions.jts.geom.GeometryCollection |
createGeometryCollection(com.vividsolutions.jts.geom.GeometryFactory gf,
List geoms) |
protected com.vividsolutions.jts.geom.LineString |
createLineString(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected com.vividsolutions.jts.geom.MultiLineString |
createMultiLineString(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected com.vividsolutions.jts.geom.MultiPoint |
createMultiPoint(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected com.vividsolutions.jts.geom.MultiPolygon |
createMultiPolygon(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected com.vividsolutions.jts.geom.Point |
createPoint(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected com.vividsolutions.jts.geom.Polygon |
createPolygon(com.vividsolutions.jts.geom.GeometryFactory gf,
List list) |
protected List |
ensureSize(List list,
int size) |
protected Shape |
makeShapeFromCoords(String type,
List coords) |
protected double |
number(Object obj) |
com.vividsolutions.jts.geom.Coordinate |
readCoord(org.noggit.JSONParser parser) |
List<com.vividsolutions.jts.geom.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, readUntilEventprotected final JtsSpatialContext ctx
public JtsGeoJSONReader(JtsSpatialContext ctx, SpatialContextFactory factory)
public com.vividsolutions.jts.geom.Coordinate readCoord(org.noggit.JSONParser parser)
throws IOException,
ParseException
IOExceptionParseExceptionpublic List<com.vividsolutions.jts.geom.Coordinate> readCoordList(org.noggit.JSONParser parser) throws IOException, ParseException
IOExceptionParseExceptionprotected Shape readPoint(org.noggit.JSONParser parser) throws IOException, ParseException
readPoint in class GeoJSONReaderIOExceptionParseExceptionprotected Shape readPolygon(org.noggit.JSONParser parser) throws IOException, ParseException
GeoJSONReaderGeoJSONReader.makeShapeFromCoords(String, List)
We could add a 'strict' or 'leinent' mode that would try the best it canreadPolygon in class GeoJSONReaderParseExceptionIOExceptionprotected Shape makeShapeFromCoords(String type, List coords)
makeShapeFromCoords in class GeoJSONReaderprotected com.vividsolutions.jts.geom.Point createPoint(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.LineString createLineString(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.Polygon createPolygon(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.MultiPoint createMultiPoint(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.MultiLineString createMultiLineString(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.MultiPolygon createMultiPolygon(com.vividsolutions.jts.geom.GeometryFactory gf,
List list)
protected com.vividsolutions.jts.geom.GeometryCollection createGeometryCollection(com.vividsolutions.jts.geom.GeometryFactory gf,
List geoms)
protected com.vividsolutions.jts.geom.Coordinate coord(List list)
protected com.vividsolutions.jts.geom.CoordinateSequence coordseq(List list)
protected double number(Object obj)
Copyright © 2025. All rights reserved.