cgl.ogc.wms.gml
Interface GMLCoord

All Known Implementing Classes:
GMLCoord_Impl

public interface GMLCoord

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

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.
 double getZ()
          returns the z-value of the coordinate.
 void setCoord(double x)
          set the coordinate as one-dimensional point
 void setCoord(double[] coord)
          sets the coordinate value(s) using a double array.
 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

Returns:
double

getY

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

Returns:
double

getZ

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

Returns:
double

getCoord

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

Returns:
double[]

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

Parameters:
coord - double[]
Throws:
GMLException

setCoord

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

Parameters:
x - double

setCoord

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

Parameters:
x - double
y - double

setCoord

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

Parameters:
x - double
y - double
z - double

getDimension

public int getDimension()
retuns the dimension of the coordinate

Returns:
int