cgl.ogc.wms.gml_Impl
Class GMLLinearRing_Impl

java.lang.Object
  extended bycgl.ogc.wms.gml_Impl.GMLGeometry_Impl
      extended bycgl.ogc.wms.gml_Impl.GMLLinearRing_Impl
All Implemented Interfaces:
GMLGeometry, GMLLinearRing

public class GMLLinearRing_Impl
extends GMLGeometry_Impl
implements GMLLinearRing

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

Field Summary
 
Fields inherited from class cgl.ogc.wms.gml_Impl.GMLGeometry_Impl
element
 
Constructor Summary
GMLLinearRing_Impl(org.w3c.dom.Element element)
          Creates a new GMLLinearRing_Impl object.
 
Method Summary
static GMLLinearRing createGMLLinearRing(org.w3c.dom.Document doc)
          factory method to create a GMLLinearRing.
 org.w3c.dom.Element getAsElement()
           
 GMLCoord[] getCoord()
          returns the coordinates (location) of the LineString as as array of GMLCoord
 GMLCoordinates getCoordinates()
          returns the coordinate (location) of the point as GMLCoordinates
 void setCoord(GMLCoord[] coord)
           
 void setCoordinates(GMLCoordinates coordinates)
           
 
Methods inherited from class cgl.ogc.wms.gml_Impl.GMLGeometry_Impl
getId, getName, getSrs, setId, setSrs, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cgl.ogc.wms.gml.GMLGeometry
getId, getName, getSrs, setId, setSrs
 

Constructor Detail

GMLLinearRing_Impl

public GMLLinearRing_Impl(org.w3c.dom.Element element)
Creates a new GMLLinearRing_Impl object.

Parameters:
element -
Method Detail

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

Parameters:
doc - Document
Returns:
GMLLinearRing

getAsElement

public org.w3c.dom.Element getAsElement()
Overrides:
getAsElement in class GMLGeometry_Impl
Returns:
Element

getCoord

public GMLCoord[] getCoord()
returns the coordinates (location) of the LineString as as array of GMLCoord

Specified by:
getCoord in interface GMLLinearRing
Returns:
GMLCoord[]

setCoord

public void setCoord(GMLCoord[] coord)
              throws GMLException
Specified by:
setCoord in interface GMLLinearRing
Parameters:
coord - GMLCoord[]
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
Returns:
GMLCoordinates

setCoordinates

public void setCoordinates(GMLCoordinates coordinates)
                    throws GMLException
Specified by:
setCoordinates in interface GMLLinearRing
Parameters:
coordinates - GMLCoordinates
Throws:
GMLException
See Also:
a exception should be thrown if the coords are not building a closed ring.