public abstract class SubHandler extends Object
Modifier and Type | Field and Description |
---|---|
static int |
GEOMETRY_END
Indicates end of a geometry.
|
static int |
GEOMETRY_START
Indicates start of a geometry.
|
static int |
GEOMETRY_SUB
Indicates a sub geometry message.
|
Constructor and Description |
---|
SubHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCoordinate(Coordinate coordinate)
Adds a coordinate to the object being built if appropriate.
|
abstract Geometry |
create(GeometryFactory geometryFactory)
Creates a new JTS geometry.
|
protected int |
getSRID()
Creates a basic SRID by looking at the provided srs.
|
protected String |
getSRS() |
abstract boolean |
isComplete(String message)
Determines whether or not the geometry is ready to return.
|
void |
setSRS(String SRS) |
void |
subGeometry(String message,
int type)
Tells the handler that it just saw a subhandler.
|
String |
toString()
Describes the handler.
|
public static final int GEOMETRY_START
public static final int GEOMETRY_END
public static final int GEOMETRY_SUB
protected String getSRS()
protected int getSRID()
As an example "EPSG:4326" would be turned into 4326
public void setSRS(String SRS)
public abstract void addCoordinate(Coordinate coordinate)
coordinate
- Coordinate to addpublic void subGeometry(String message, int type)
message
- The sub geometry message (i.e. isInnerBoundary).type
- The type of sub message (start, end, etc.)public abstract boolean isComplete(String message)
message
- The geometry to inspect.public abstract Geometry create(GeometryFactory geometryFactory)
geometryFactory
- The JTS geometry factory to use for geometry creation.Copyright © 1996–2019 Geotools. All rights reserved.