org.deegree.gml
Interface GMLCoord

All Known Implementing Classes:
GMLCoord_Impl

public interface GMLCoord

----------------------------------------------------------

Version:
07.02.2001

Author:
Andreas Poth

Method Summary
 double[] getCoord()
          returns the coordinate as double array
 int getDimension()
          retuns the dimension of the coordinate
 double getX()
          returns the x-value of the coordinate
 double getY()
          returns the y-value of the coordinate. if no y-value is defined -9E99 will be returned
 double getZ()
          returns the z-value of the coordinate. if no z-value is defined -9E99 will be returned
 void setCoord(double x)
          set the coordinate as one-dimensional point
 void setCoord(double[] coord)
          sets the coordinate value(s) using a double array. the min length of the equals 1 the max length 3
 void setCoord(double x, double y)
          set the coordinate as two-dimensional point
 void setCoord(double x, double y, double z)
          set the coordinate as three-dimensional point
 

Method Detail

getX

public double getX()
returns the x-value of the coordinate


getY

public double getY()
returns the y-value of the coordinate. if no y-value is defined -9E99 will be returned


getZ

public double getZ()
returns the z-value of the coordinate. if no z-value is defined -9E99 will be returned


getCoord

public double[] getCoord()
returns the coordinate as double array


setCoord

public void setCoord(double[] coord)
              throws GMLException
sets the coordinate value(s) using a double array. the min length of the equals 1 the max length 3

Throws:
GMLException

setCoord

public void setCoord(double x)
set the coordinate as one-dimensional point


setCoord

public void setCoord(double x,
                     double y)
set the coordinate as two-dimensional point


setCoord

public void setCoord(double x,
                     double y,
                     double z)
set the coordinate as three-dimensional point


getDimension

public int getDimension()
retuns the dimension of the coordinate