Package | Description |
---|---|
com.spatial4j.core.io |
Reading & writing shapes in various forms.
|
com.spatial4j.core.io.jts |
Modifier and Type | Method and Description |
---|---|
protected WktShapeParser.State |
WktShapeParser.newState(String wktString)
(internal) Creates a new State with the given String.
|
Modifier and Type | Method and Description |
---|---|
protected Shape |
WktShapeParser.parseBufferShape(WktShapeParser.State state)
Parses the BUFFER operation applied to a parsed shape.
|
protected Shape |
WktShapeParser.parseEnvelopeShape(WktShapeParser.State state)
Parses an ENVELOPE (aka Rectangle) shape from the raw string.
|
protected Shape |
WktShapeParser.parseGeometryCollectionShape(WktShapeParser.State state)
Parses a GEOMETRYCOLLECTION shape from the raw string.
|
protected Shape |
WktShapeParser.parseLineStringShape(WktShapeParser.State state)
Parses a LINESTRING shape from the raw string -- an ordered sequence of points.
|
protected Shape |
WktShapeParser.parseMultiLineStringShape(WktShapeParser.State state)
Parses a MULTILINESTRING shape from the raw string -- a collection of line strings.
|
protected Shape |
WktShapeParser.parseMultiPointShape(WktShapeParser.State state)
Parses a MULTIPOINT shape from the raw string -- a collection of points.
|
protected Shape |
WktShapeParser.parsePointShape(WktShapeParser.State state)
Parses a POINT shape from the raw string.
|
protected Shape |
WktShapeParser.parseShapeByType(WktShapeParser.State state,
String shapeType)
(internal) Parses the remainder of a shape definition following the shape's name
given as
shapeType already consumed via
nextWord() . |
protected Point |
WktShapeParser.point(WktShapeParser.State state)
Reads a raw Point (AKA Coordinate) from the current position.
|
protected List<Point> |
WktShapeParser.pointList(WktShapeParser.State state)
Reads a list of Points (AKA CoordinateSequence) from the current position.
|
protected Shape |
WktShapeParser.shape(WktShapeParser.State state)
Reads a shape from the current position, starting with the name of the shape.
|
Modifier and Type | Method and Description |
---|---|
protected com.vividsolutions.jts.geom.Coordinate |
JtsWktShapeParser.coordinate(WktShapeParser.State state)
Reads a
Coordinate from the current position. |
protected com.vividsolutions.jts.geom.Coordinate[] |
JtsWktShapeParser.coordinateSequence(WktShapeParser.State state)
Reads a JTS Coordinate sequence from the current position.
|
protected List<com.vividsolutions.jts.geom.Coordinate[]> |
JtsWktShapeParser.coordinateSequenceList(WktShapeParser.State state)
Reads a list of JTS Coordinate sequences from the current position.
|
protected Shape |
JtsWktShapeParser.parseLineStringShape(WktShapeParser.State state)
Bypasses
JtsSpatialContext.makeLineString(java.util.List) so that we can more
efficiently get the LineString without creating a List<Point> . |
protected Shape |
JtsWktShapeParser.parseMulitPolygonShape(WktShapeParser.State state)
Parses a MULTIPOLYGON shape from the raw string.
|
protected Shape |
JtsWktShapeParser.parsePolygonShape(WktShapeParser.State state)
Parses a POLYGON shape from the raw string.
|
protected Shape |
JtsWktShapeParser.parseShapeByType(WktShapeParser.State state,
String shapeType) |
protected com.vividsolutions.jts.geom.Polygon |
JtsWktShapeParser.polygon(WktShapeParser.State state)
Reads a polygon, returning a JTS polygon.
|
Copyright © 2014 LocationTech. All rights reserved.