no.uio.edd.utils.geoutils
Class GeoLine
java.lang.Object
no.uio.edd.utils.geoutils.GeoFeature
no.uio.edd.utils.geoutils.GeoLine
public class GeoLine
- extends GeoFeature
Constructor Summary |
GeoLine(org.w3c.dom.Node rootNode,
java.lang.String offsetMapType,
java.lang.String id)
|
Method Summary |
java.lang.String |
asCoordList()
|
java.lang.String |
asGML()
The GML fragment returned by this method should contain everything from
the level of the specific geometry, that is, from gml:Point, gml:Polygon,
etc. |
GeoPoint |
getMidpoint()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GeoLine
public GeoLine(org.w3c.dom.Node rootNode,
java.lang.String offsetMapType,
java.lang.String id)
throws GeoLocationException
- Throws:
GeoLocationException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
asGML
public java.lang.String asGML()
- Description copied from class:
GeoFeature
- The GML fragment returned by this method should contain everything from
the level of the specific geometry, that is, from gml:Point, gml:Polygon,
etc.
- Specified by:
asGML
in class GeoFeature
- Returns:
- An XML-GML fragment representing my vector geometry, if
application; otherwise, return an empty string.
asCoordList
public java.lang.String asCoordList()
- Specified by:
asCoordList
in class GeoFeature
getMidpoint
public GeoPoint getMidpoint()
- Specified by:
getMidpoint
in class GeoFeature