Package org.geotools.gml
Class SubHandlerMulti
Object
SubHandler
SubHandlerMulti
Creates a MultiPoint, MultiLineString, or MultiPolygon geometry as required by the internal functions.
- Author:
- Ian Turton, CCG, Rob Hranac, Vision for New York
-
Field Summary
Fields inherited from class SubHandler
GEOMETRY_END, GEOMETRY_START, GEOMETRY_SUB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCoordinate
(Coordinate coordinate) Adds a coordinate to the current internal (sub) 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.Methods inherited from class SubHandler
getSRID, getSRS, setSRS, toString
-
Constructor Details
-
SubHandlerMulti
public SubHandlerMulti()Empty constructor.
-
-
Method Details
-
subGeometry
Handles all internal (sub) geometries.- Overrides:
subGeometry
in classSubHandler
- Parameters:
message
- The sub geometry type found.type
- Whether or not it is at a start or end.
-
addCoordinate
Adds a coordinate to the current internal (sub) geometry.- Specified by:
addCoordinate
in classSubHandler
- Parameters:
coordinate
- The coordinate.
-
isComplete
Determines whether or not it is time to return this geometry.- Specified by:
isComplete
in classSubHandler
- Parameters:
message
- The geometry element that prompted this check.- Returns:
- Flag for a complete geometry.
-
create
Returns a completed multi type.- Specified by:
create
in classSubHandler
- Parameters:
geometryFactory
- The factory this method should use to create the multi type.- Returns:
- Appropriate multi geometry type.
-