public class GmlPoint extends ExtensionPoint implements Point
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler| Constructor and Description |
|---|
GmlPoint()
Constructs an empty gml:Point element.
|
GmlPoint(java.lang.Double lat,
java.lang.Double lon)
Constructs a gml:Point element out of the given lat and lon values.
|
GmlPoint(Point point)
Constructs a gml:Point element using the given Point coordinates for the
nested gml:pos element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates the XML corresponding to this gml point.
|
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description and is repeatable.
|
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable
repeatability.
|
java.lang.Double |
getLatitude() |
java.lang.Double |
getLongitude() |
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the latitude and longitude of the gml:pos element of this Point to the
latitude and longitude coordinates specified.
|
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visitdisableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutableequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandlerpublic GmlPoint()
public GmlPoint(java.lang.Double lat,
java.lang.Double lon)
public GmlPoint(Point point)
public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.public java.lang.Double getLatitude()
getLatitude in interface Pointpublic java.lang.Double getLongitude()
getLongitude in interface Pointpublic void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
setGeoLocation in interface Pointlat - The latitude coordinate of this point.lon - the longitude coordinate of this point.public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profilejava.io.IOException