org.deegree.geometry.refs
Class PointReference

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.commons.tom.gml.GMLReference<T>
          extended by org.deegree.geometry.refs.GeometryReference<T>
              extended by org.deegree.geometry.refs.GeometricPrimitiveReference<Point>
                  extended by org.deegree.geometry.refs.PointReference
All Implemented Interfaces:
GMLObject, Object, TypedObjectNode, Geometry, GeometricPrimitive, Point

public class PointReference
extends GeometricPrimitiveReference<Point>
implements Point

The class TODO add class documentation here.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
GeometricPrimitive.PrimitiveType
 
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry
Geometry.GeometryType
 
Constructor Summary
PointReference(GMLReferenceResolver resolver, String uri, String baseURL)
          Creates a new PointReference instance.
 
Method Summary
 double get(int dimension)
          Returns the value of the specified ordinate.
 double get0()
          Returns the value of the first ordinate.
 double get1()
          Returns the value of the second ordinate.
 double get2()
          Returns the value of the third ordinate.
 double[] getAsArray()
          Returns all ordinates.
 GeometricPrimitive.PrimitiveType getPrimitiveType()
          Returns the type of primitive.
 
Methods inherited from class org.deegree.geometry.refs.GeometricPrimitiveReference
getGeometryType
 
Methods inherited from class org.deegree.geometry.refs.GeometryReference
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from class org.deegree.commons.tom.Reference
getId, getReferencedObject, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.geometry.primitive.GeometricPrimitive
getGeometryType
 
Methods inherited from interface org.deegree.geometry.Geometry
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 

Constructor Detail

PointReference

public PointReference(GMLReferenceResolver resolver,
                      String uri,
                      String baseURL)
Creates a new PointReference instance.

Parameters:
resolver - used for resolving the reference, must not be null
uri - the geometry's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
Method Detail

get

public double get(int dimension)
Description copied from interface: Point
Returns the value of the specified ordinate.

Specified by:
get in interface Point
Parameters:
dimension - ordinate to be returned (first dimension=0)
Returns:
ordinate value of the passed dimension, or Double.NAN if dimension is greater than the number of actual dimensions

getAsArray

public double[] getAsArray()
Description copied from interface: Point
Returns all ordinates.

Specified by:
getAsArray in interface Point
Returns:
all ordinates, the length of the array is equal to the number of dimensions

getPrimitiveType

public GeometricPrimitive.PrimitiveType getPrimitiveType()
Description copied from interface: GeometricPrimitive
Returns the type of primitive.

Specified by:
getPrimitiveType in interface GeometricPrimitive
Specified by:
getPrimitiveType in interface Point
Overrides:
getPrimitiveType in class GeometricPrimitiveReference<Point>
Returns:
the type of primitive

get0

public double get0()
Description copied from interface: Point
Returns the value of the first ordinate.

Specified by:
get0 in interface Point
Returns:
value of the first ordinate

get1

public double get1()
Description copied from interface: Point
Returns the value of the second ordinate.

Specified by:
get1 in interface Point
Returns:
value of the second ordinate, or Double.NAN if the point only has one dimension

get2

public double get2()
Description copied from interface: Point
Returns the value of the third ordinate.

Specified by:
get2 in interface Point
Returns:
value of the third ordinate, or Double.NAN if the point only has one or two dimensions


Copyright © 2011. All Rights Reserved.