no.uio.edd.utils.geoutils
Class GeoPolyline
java.lang.Object
no.uio.edd.utils.geoutils.GeoFeature
no.uio.edd.utils.geoutils.GeoPolyline
public class GeoPolyline
- extends GeoFeature
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoPolyline
public GeoPolyline(double[] points)
- Parameters:
points
- Must be an even number.
asCoordList
public java.lang.String asCoordList()
- Specified by:
asCoordList
in class GeoFeature
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.
getMidpoint
public GeoPoint getMidpoint()
- Specified by:
getMidpoint
in class GeoFeature
moveMe
public GeoPolyline moveMe(double offsetX,
double offsetY)
getMyLength
public double getMyLength()
getMyPoints
public GeoPoint[] getMyPoints()