public class SubHandlerMulti extends SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB
Constructor and Description |
---|
SubHandlerMulti()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCoordinate(Coordinate coordinate)
Adds a coordinate to the current internal (sub) geometry.
|
Geometry |
create(GeometryFactory geometryFactory)
Returns a completed multi type.
|
boolean |
isComplete(String message)
Determines whether or not it is time to return this geometry.
|
void |
subGeometry(String message,
int type)
Handles all internal (sub) geometries.
|
getSRID, getSRS, setSRS, toString
public void subGeometry(String message, int type)
subGeometry
in class SubHandler
message
- The sub geometry type found.type
- Whether or not it is at a start or end.public void addCoordinate(Coordinate coordinate)
addCoordinate
in class SubHandler
coordinate
- The coordinate.public boolean isComplete(String message)
isComplete
in class SubHandler
message
- The geometry element that prompted this check.public Geometry create(GeometryFactory geometryFactory)
create
in class SubHandler
geometryFactory
- The factory this method should use to create the multi type.Copyright © 1996–2019 Geotools. All rights reserved.