org.deegree_impl.gml
Class GMLLinearRing_Impl
java.lang.Object
org.deegree_impl.gml.GMLGeometry_Impl
org.deegree_impl.gml.GMLLinearRing_Impl
- All Implemented Interfaces:
- GMLGeometry, GMLLinearRing
- public class GMLLinearRing_Impl
- extends GMLGeometry_Impl
- implements GMLLinearRing
----------------------------------------------------------
- Version:
- 07.02.2001
- Author:
- Andreas Poth
Constructor Summary |
GMLLinearRing_Impl(org.w3c.dom.Element element)
Creates a new GMLLinearRing_Impl object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GMLLinearRing_Impl
public GMLLinearRing_Impl(org.w3c.dom.Element element)
- Creates a new GMLLinearRing_Impl object.
- Parameters:
element
-
createGMLLinearRing
public static GMLLinearRing createGMLLinearRing(org.w3c.dom.Document doc)
- factory method to create a GMLLinearRing. the linear ring
that will be returned doesn't contain any point
getAsElement
public org.w3c.dom.Element getAsElement()
- Overrides:
getAsElement
in class GMLGeometry_Impl
- Returns:
getCoord
public GMLCoord[] getCoord()
- returns the coordinates (location) of the LineString as
as array of GMLCoord
- Specified by:
getCoord
in interface GMLLinearRing
setCoord
public void setCoord(GMLCoord[] coord)
throws GMLException
- Specified by:
setCoord
in interface GMLLinearRing
- Throws:
GMLException
- See Also:
a exception should be thrown if the coords are not homogen
or the coords are not building a closed ring.
getCoordinates
public GMLCoordinates getCoordinates()
- returns the coordinate (location) of the point as GMLCoordinates
- Specified by:
getCoordinates
in interface GMLLinearRing
setCoordinates
public void setCoordinates(GMLCoordinates coordinates)
throws GMLException
- Specified by:
setCoordinates
in interface GMLLinearRing
- Throws:
GMLException
- See Also:
a exception should be thrown if the coords are not
building a closed ring.