Package org.geotools.gml
Class SubHandlerMulti
- Object
-
- SubHandler
-
- SubHandlerMulti
-
public class SubHandlerMulti extends SubHandler
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 Constructor Description SubHandlerMulti()Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCoordinate(Coordinate coordinate)Adds a coordinate to the current internal (sub) geometry.Geometrycreate(GeometryFactory geometryFactory)Returns a completed multi type.booleanisComplete(String message)Determines whether or not it is time to return this geometry.voidsubGeometry(String message, int type)Handles all internal (sub) geometries.-
Methods inherited from class SubHandler
getSRID, getSRS, setSRS, toString
-
-
-
-
Method Detail
-
subGeometry
public void subGeometry(String message, int type)
Handles all internal (sub) geometries.- Overrides:
subGeometryin classSubHandler- Parameters:
message- The sub geometry type found.type- Whether or not it is at a start or end.
-
addCoordinate
public void addCoordinate(Coordinate coordinate)
Adds a coordinate to the current internal (sub) geometry.- Specified by:
addCoordinatein classSubHandler- Parameters:
coordinate- The coordinate.
-
isComplete
public boolean isComplete(String message)
Determines whether or not it is time to return this geometry.- Specified by:
isCompletein classSubHandler- Parameters:
message- The geometry element that prompted this check.- Returns:
- Flag for a complete geometry.
-
create
public Geometry create(GeometryFactory geometryFactory)
Returns a completed multi type.- Specified by:
createin classSubHandler- Parameters:
geometryFactory- The factory this method should use to create the multi type.- Returns:
- Appropriate multi geometry type.
-
-