Constructor and Description |
---|
GMLGeometryUtil() |
Modifier and Type | Method and Description |
---|---|
static CRSDefinition |
findCRS(Instance instance)
Find the CRS definition to be associated with the geometry contained in
the given instance.
|
static com.vividsolutions.jts.geom.Coordinate |
parseCoord(Instance instance)
Parse a coordinate from a GML CoordType instance.
|
static com.vividsolutions.jts.geom.Coordinate[] |
parseCoordinates(Instance coordinates)
Parse coordinates from a GML CoordinatesType instance.
|
static com.vividsolutions.jts.geom.Coordinate |
parseDirectPosition(Instance directPosition)
Parse a coordinate from a GML DirectPositionType instance.
|
static com.vividsolutions.jts.geom.Coordinate[] |
parsePosList(Instance posList,
int srsDimension)
Parse a coordinate from a GML PosList instance.
|
public static com.vividsolutions.jts.geom.Coordinate[] parseCoordinates(Instance coordinates) throws ParseException
coordinates
- the coordinates instancenull
if the instances contains no
coordinatesParseException
- if parsing the coordinates failspublic static com.vividsolutions.jts.geom.Coordinate parseDirectPosition(Instance directPosition) throws GeometryNotSupportedException
directPosition
- the direct position instancenull
if the instance contains not
direct positionGeometryNotSupportedException
- if no valid coordinate could be
created from the direct positionpublic static com.vividsolutions.jts.geom.Coordinate[] parsePosList(Instance posList, int srsDimension) throws GeometryNotSupportedException
posList
- the PosList instancesrsDimension
- the Dimension of the instancenull
if the instance
contains not a PosListGeometryNotSupportedException
- if no valid coordinate could be
created from the PosListpublic static com.vividsolutions.jts.geom.Coordinate parseCoord(Instance instance) throws GeometryNotSupportedException
instance
- the coord instanceGeometryNotSupportedException
- if a valid coordinate can't be
createdpublic static CRSDefinition findCRS(Instance instance)
instance
- the given instancenull
if none could be
identifiedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a