|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.io.gml.geometry.GMLGeometryUtil
public abstract class GMLGeometryUtil
Utility methods for reading GML geometries from an Instance
model.
Constructor Summary | |
---|---|
GMLGeometryUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GMLGeometryUtil()
Method Detail |
---|
public static com.vividsolutions.jts.geom.Coordinate[] parseCoordinates(Instance coordinates) throws ParseException
coordinates
- the coordinates instance
null
if the instances contains no
coordinates
ParseException
- if parsing the coordinates failspublic static com.vividsolutions.jts.geom.Coordinate parseDirectPosition(Instance directPosition) throws GeometryNotSupportedException
directPosition
- the direct position instance
null
if the instance contains not
direct position
GeometryNotSupportedException
- 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 instance
null
if the instance
contains not a PosList
GeometryNotSupportedException
- if no valid coordinate could be
created from the PosListpublic static com.vividsolutions.jts.geom.Coordinate parseCoord(Instance instance) throws GeometryNotSupportedException
instance
- the coord instance
GeometryNotSupportedException
- if a valid coordinate can't be
createdpublic static CRSDefinition findCRS(Instance instance)
instance
- the given instance
null
if none could be
identified
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |