java.lang.Object
de.turnertech.ows.gml.DirectPosition
- All Implemented Interfaces:
GmlElement
gml:pos
A location with a spatial reference. This is not "Geometry", but rather an actual position.
This implementation maintains a list of the size of the
SpatialReferenceSystem.getDimension()
.
For convenience, and to help prevent errors in axis order, X and Y getters and setters exist. This should
make dealing with actual position vs coordinate representation easier.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final QName
static final QName
static final QName
static final QName
Fields inherited from interface de.turnertech.ows.gml.GmlElement
NAMESPACE
-
Constructor Summary
ConstructorsConstructorDescriptionDirectPosition
(double x, double y) DirectPosition
(SpatialReferenceSystem srs, double x, double y) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.turnertech.ows.gml.GmlElement
toGml, toGml, writeGml, writeGmlStartElement
-
Field Details
-
GML_NAME
- See Also:
-
QNAME
-
LOWER_CORNER_QNAME
-
UPPER_CORNER_QNAME
-
POS_QNAME
-
-
Constructor Details
-
DirectPosition
public DirectPosition() -
DirectPosition
public DirectPosition(double x, double y) -
DirectPosition
-
-
Method Details
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getSrs
-
toString
-
writeGml
public void writeGml(XMLStreamWriter out, String localName, String namespaceURI, SpatialReferenceSystemRepresentation srsRepresentation) - Specified by:
writeGml
in interfaceGmlElement
-
getGmlName
- Specified by:
getGmlName
in interfaceGmlElement
-