org.geotools.geometry.iso.primitive
Class OrientablePrimitiveProxy

java.lang.Object
  extended by org.geotools.geometry.iso.primitive.OrientablePrimitiveProxy
All Implemented Interfaces:
java.io.Serializable, org.opengis.geometry.Geometry, org.opengis.geometry.primitive.OrientablePrimitive, org.opengis.geometry.primitive.Primitive, org.opengis.geometry.TransfiniteSet
Direct Known Subclasses:
OrientableCurveProxy

public class OrientablePrimitiveProxy
extends java.lang.Object
implements org.opengis.geometry.primitive.OrientablePrimitive, java.io.Serializable

OrientablePrimitive objects are essentially references to geometric primitives that carry an "orientation" reversal flag (either "+" or "-") that determines whether this primitive agrees or disagrees with the orientation of the referenced object.

Author:
roehrig
See Also:
Serialized Form

Constructor Summary
protected OrientablePrimitiveProxy(PrimitiveImpl primitive)
          Orientable primitives are often denoted by a sign (for the orientation) and a base geometry (curve or surface).
 
Method Summary
 OrientablePrimitiveProxy clone()
           
 boolean contains(org.opengis.geometry.DirectPosition point)
           
 boolean contains(org.opengis.geometry.TransfiniteSet pointSet)
           
 org.opengis.geometry.TransfiniteSet difference(org.opengis.geometry.TransfiniteSet pointSet)
           
 double distance(org.opengis.geometry.Geometry geometry)
           
 boolean equals(org.opengis.geometry.TransfiniteSet pointSet)
           
 org.opengis.geometry.primitive.PrimitiveBoundary getBoundary()
           
 org.opengis.geometry.Geometry getBuffer(double distance)
           
 org.opengis.geometry.DirectPosition getCentroid()
           
 org.opengis.geometry.complex.Complex getClosure()
           
 java.util.Set<org.opengis.geometry.complex.Complex> getComplexes()
           
 org.opengis.geometry.complex.Composite getComposite()
           
 java.util.Set<org.opengis.geometry.primitive.Primitive> getContainedPrimitives()
           
 java.util.Set<org.opengis.geometry.primitive.Primitive> getContainingPrimitives()
           
 org.opengis.geometry.Geometry getConvexHull()
           
 int getCoordinateDimension()
           
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
           
 int getDimension(org.opengis.geometry.DirectPosition point)
           
 double getDistance(org.opengis.geometry.Geometry geometry)
           
 org.opengis.geometry.Envelope getEnvelope()
           
 java.util.Set<org.opengis.geometry.complex.Complex> getMaximalComplex()
           
 org.opengis.geometry.Geometry getMbRegion()
           
 int getOrientation()
           
 org.opengis.geometry.Precision getPrecision()
           
 org.opengis.geometry.primitive.Primitive getPrimitive()
           
 org.opengis.geometry.primitive.OrientablePrimitive[] getProxy()
           
 org.opengis.geometry.DirectPosition getRepresentativePoint()
           
 org.opengis.geometry.TransfiniteSet intersection(org.opengis.geometry.TransfiniteSet pointSet)
           
 boolean intersects(org.opengis.geometry.TransfiniteSet pointSet)
           
 boolean isCycle()
           
 boolean isMutable()
           
 boolean isSimple()
           
 org.opengis.geometry.TransfiniteSet symmetricDifference(org.opengis.geometry.TransfiniteSet pointSet)
           
 org.opengis.geometry.Geometry toImmutable()
           
 org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS)
           
 org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS, org.opengis.referencing.operation.MathTransform transform)
           
 org.opengis.geometry.TransfiniteSet union(org.opengis.geometry.TransfiniteSet pointSet)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrientablePrimitiveProxy

protected OrientablePrimitiveProxy(PrimitiveImpl primitive)
Orientable primitives are often denoted by a sign (for the orientation) and a base geometry (curve or surface). The sign datatype is defined in ISO 19103. If "c" is a curve, then "<+, c>" is its positive orientable curve and "<-, c>" is its negative orientable curve. In most cases, leaving out the syntax for record "< , >" does not lead to confusion, so "<+, c>" may be written as "+c" or simply "c", and "<-, c>" as "-c". Curve space arithmetic can be performed if the curves align properly, so that: For c, d : GM_OrientableCurves such that c.endPoint = d.startPoint then ( c + d ) ==: GM_CompositeCurve = < c, d >

Parameters:
primitive -
Method Detail

clone

public OrientablePrimitiveProxy clone()
                               throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.opengis.geometry.Geometry
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getOrientation

public int getOrientation()
Specified by:
getOrientation in interface org.opengis.geometry.primitive.OrientablePrimitive

getPrimitive

public org.opengis.geometry.primitive.Primitive getPrimitive()
Specified by:
getPrimitive in interface org.opengis.geometry.primitive.OrientablePrimitive

getBoundary

public org.opengis.geometry.primitive.PrimitiveBoundary getBoundary()
Specified by:
getBoundary in interface org.opengis.geometry.Geometry
Specified by:
getBoundary in interface org.opengis.geometry.primitive.Primitive

getContainedPrimitives

public java.util.Set<org.opengis.geometry.primitive.Primitive> getContainedPrimitives()
Specified by:
getContainedPrimitives in interface org.opengis.geometry.primitive.Primitive

getContainingPrimitives

public java.util.Set<org.opengis.geometry.primitive.Primitive> getContainingPrimitives()
Specified by:
getContainingPrimitives in interface org.opengis.geometry.primitive.Primitive

getComplexes

public java.util.Set<org.opengis.geometry.complex.Complex> getComplexes()
Specified by:
getComplexes in interface org.opengis.geometry.primitive.Primitive

getComposite

public org.opengis.geometry.complex.Composite getComposite()
Specified by:
getComposite in interface org.opengis.geometry.primitive.Primitive

getProxy

public org.opengis.geometry.primitive.OrientablePrimitive[] getProxy()
Specified by:
getProxy in interface org.opengis.geometry.primitive.Primitive

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Specified by:
getCoordinateReferenceSystem in interface org.opengis.geometry.Geometry

getPrecision

public org.opengis.geometry.Precision getPrecision()
Specified by:
getPrecision in interface org.opengis.geometry.Geometry

getMbRegion

public org.opengis.geometry.Geometry getMbRegion()
Specified by:
getMbRegion in interface org.opengis.geometry.Geometry

getRepresentativePoint

public org.opengis.geometry.DirectPosition getRepresentativePoint()
Specified by:
getRepresentativePoint in interface org.opengis.geometry.Geometry

getClosure

public org.opengis.geometry.complex.Complex getClosure()
Specified by:
getClosure in interface org.opengis.geometry.Geometry

isSimple

public boolean isSimple()
Specified by:
isSimple in interface org.opengis.geometry.Geometry

isCycle

public boolean isCycle()
Specified by:
isCycle in interface org.opengis.geometry.Geometry

distance

public double distance(org.opengis.geometry.Geometry geometry)
Specified by:
distance in interface org.opengis.geometry.Geometry

getDistance

public double getDistance(org.opengis.geometry.Geometry geometry)

getDimension

public int getDimension(org.opengis.geometry.DirectPosition point)
Specified by:
getDimension in interface org.opengis.geometry.Geometry

getCoordinateDimension

public int getCoordinateDimension()
Specified by:
getCoordinateDimension in interface org.opengis.geometry.Geometry

getMaximalComplex

public java.util.Set<org.opengis.geometry.complex.Complex> getMaximalComplex()
Specified by:
getMaximalComplex in interface org.opengis.geometry.Geometry

transform

public org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS)
                                        throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.geometry.Geometry
Throws:
org.opengis.referencing.operation.TransformException

transform

public org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS,
                                               org.opengis.referencing.operation.MathTransform transform)
                                        throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.geometry.Geometry
Throws:
org.opengis.referencing.operation.TransformException

getEnvelope

public org.opengis.geometry.Envelope getEnvelope()
Specified by:
getEnvelope in interface org.opengis.geometry.Geometry

getConvexHull

public org.opengis.geometry.Geometry getConvexHull()
Specified by:
getConvexHull in interface org.opengis.geometry.Geometry

getBuffer

public org.opengis.geometry.Geometry getBuffer(double distance)
Specified by:
getBuffer in interface org.opengis.geometry.Geometry

isMutable

public boolean isMutable()
Specified by:
isMutable in interface org.opengis.geometry.Geometry

toImmutable

public org.opengis.geometry.Geometry toImmutable()
Specified by:
toImmutable in interface org.opengis.geometry.Geometry

contains

public boolean contains(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
contains in interface org.opengis.geometry.TransfiniteSet

contains

public boolean contains(org.opengis.geometry.DirectPosition point)
Specified by:
contains in interface org.opengis.geometry.TransfiniteSet

intersects

public boolean intersects(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
intersects in interface org.opengis.geometry.TransfiniteSet

equals

public boolean equals(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
equals in interface org.opengis.geometry.TransfiniteSet

union

public org.opengis.geometry.TransfiniteSet union(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
union in interface org.opengis.geometry.TransfiniteSet

intersection

public org.opengis.geometry.TransfiniteSet intersection(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
intersection in interface org.opengis.geometry.TransfiniteSet

difference

public org.opengis.geometry.TransfiniteSet difference(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
difference in interface org.opengis.geometry.TransfiniteSet

symmetricDifference

public org.opengis.geometry.TransfiniteSet symmetricDifference(org.opengis.geometry.TransfiniteSet pointSet)
Specified by:
symmetricDifference in interface org.opengis.geometry.TransfiniteSet

getCentroid

public org.opengis.geometry.DirectPosition getCentroid()
Specified by:
getCentroid in interface org.opengis.geometry.Geometry


Copyright © 1996-2010 Geotools. All Rights Reserved.