org.deegree.gml.geometry.refs
Class PointReference
java.lang.Object
org.deegree.gml.GMLReference<T>
org.deegree.gml.geometry.refs.GeometryReference<T>
org.deegree.gml.geometry.refs.GeometricPrimitiveReference<Point>
org.deegree.gml.geometry.refs.PointReference
- All Implemented Interfaces:
- Geometry, GeometricPrimitive, Point, GMLObject
public class PointReference
- extends GeometricPrimitiveReference<Point>
- implements Point
The
class TODO add class documentation here.
- Version:
- $Revision: $, $Date: $
- Author:
- Markus Schneider, last edited by: $Author: schneider $
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.gml.geometry.refs.GeometryReference |
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
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.Geometry |
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
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)
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
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>