org.geotools.geometry.jts.spatialschema.geometry.complex
Class CompositeCurveImpl
java.lang.Object
org.geotools.geometry.jts.spatialschema.geometry.GeometryImpl
org.geotools.geometry.jts.spatialschema.geometry.complex.ComplexImpl
org.geotools.geometry.jts.spatialschema.geometry.complex.CompositeImpl
org.geotools.geometry.jts.spatialschema.geometry.complex.CompositeCurveImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, JTSGeometry, org.opengis.geometry.complex.Complex, org.opengis.geometry.complex.Composite, org.opengis.geometry.complex.CompositeCurve, org.opengis.geometry.Geometry, org.opengis.geometry.primitive.OrientableCurve, org.opengis.geometry.primitive.OrientablePrimitive, org.opengis.geometry.primitive.Primitive, org.opengis.geometry.TransfiniteSet
- Direct Known Subclasses:
- RingImpl
public class CompositeCurveImpl
- extends CompositeImpl
- implements org.opengis.geometry.complex.CompositeCurve
A complex with all the geometric properties of a curve. Thus, this
composite can be considered as a type of orientable curve.
Essentially, a composite curve is a list of orientable curves
agreeing in orientation in a manner such that each curve (except the first) begins where
the previous one ends.
However, this implementation does NOT currently require that the start
point for element i+1 must be identical to the end point of element i.
This may change for later versions when arcs are supported.
- Version:
- 2.0
- Author:
- ISO/DIS 19107, OpenGIS® consortium
- See Also:
- Serialized Form
Constructor Summary |
CompositeCurveImpl(org.opengis.geometry.complex.CompositeCurve parent)
|
CompositeCurveImpl(org.opengis.geometry.complex.CompositeCurve parent,
org.opengis.referencing.crs.CoordinateReferenceSystem crs)
|
Method Summary |
org.opengis.geometry.primitive.CurveBoundary |
getBoundary()
Returns the boundary of this geometry. |
java.util.Set<org.opengis.geometry.complex.Complex> |
getComplexes()
|
org.opengis.geometry.complex.CompositeCurve |
getComposite()
Returns the owner of this orientable curve, or null if none. |
java.util.Set |
getContainedPrimitives()
|
java.util.Set<org.opengis.geometry.primitive.Primitive> |
getContainingPrimitives()
This implementation doesn't support traversing this association in
this direction, so this method always returns null. |
java.util.List<org.opengis.geometry.primitive.OrientableCurve> |
getGenerators()
Returns the list of orientable curves in this composite. |
int |
getOrientation()
This implementation always returns +1, indicating that the curve is to
be traversed in its "natural" order. |
org.opengis.geometry.primitive.Curve |
getPrimitive()
This returns the "positive orientation" primitive. |
org.opengis.geometry.primitive.OrientablePrimitive[] |
getProxy()
This implementation currently only supports positively oriented
primitives, so this method will always return null, indicating that this
object itself is the only instance in existence and that there are no
proxies for the positively and negatively oriented versions of this
primitive. |
Methods inherited from class org.geotools.geometry.jts.spatialschema.geometry.GeometryImpl |
clone, contains, contains, difference, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getDistance, getEnvelope, getJTSGeometry, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, intersection, intersects, invalidateCachedJTSPeer, isCycle, isMutable, isSimple, listAsSet, setJTSPeer, setParent, symmetricDifference, toImmutable, transform, transform, union |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.complex.Complex |
getElements, getSubComplexes, getSuperComplexes, isMaximal |
Methods inherited from interface org.opengis.geometry.Geometry |
clone, distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, getRepresentativePoint, isCycle, isMutable, isSimple, toImmutable, transform, transform |
Methods inherited from interface org.opengis.geometry.TransfiniteSet |
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union |
CompositeCurveImpl
public CompositeCurveImpl(org.opengis.geometry.complex.CompositeCurve parent)
CompositeCurveImpl
public CompositeCurveImpl(org.opengis.geometry.complex.CompositeCurve parent,
org.opengis.referencing.crs.CoordinateReferenceSystem crs)
getBoundary
public org.opengis.geometry.primitive.CurveBoundary getBoundary()
- Description copied from class:
GeometryImpl
- Returns the boundary of this geometry. Returns null if the boundary is
empty.
- Specified by:
getBoundary
in interface org.opengis.geometry.Geometry
- Specified by:
getBoundary
in interface org.opengis.geometry.primitive.OrientableCurve
- Specified by:
getBoundary
in interface org.opengis.geometry.primitive.Primitive
- Overrides:
getBoundary
in class GeometryImpl
getGenerators
public final java.util.List<org.opengis.geometry.primitive.OrientableCurve> getGenerators()
- Returns the list of orientable curves in this composite.
To get a full representation of the elements in the complex,
the points on the boundary of the
generator set of curve would be
added to the curves in the generator list.
- Specified by:
getGenerators
in interface org.opengis.geometry.complex.Composite
- Specified by:
getGenerators
in interface org.opengis.geometry.complex.CompositeCurve
- Overrides:
getGenerators
in class CompositeImpl
- Returns:
- The list of orientable curves in this composite.
getComposite
public final org.opengis.geometry.complex.CompositeCurve getComposite()
- Returns the owner of this orientable curve, or
null
if none.
- Specified by:
getComposite
in interface org.opengis.geometry.primitive.OrientableCurve
- Specified by:
getComposite
in interface org.opengis.geometry.primitive.Primitive
- Returns:
- The owner of this orientable curve, or
null
if none.
getOrientation
public int getOrientation()
- This implementation always returns +1, indicating that the curve is to
be traversed in its "natural" order.
- Specified by:
getOrientation
in interface org.opengis.geometry.primitive.OrientablePrimitive
getPrimitive
public org.opengis.geometry.primitive.Curve getPrimitive()
- This returns the "positive orientation" primitive. In this
implementation, we only support positively oriented primitives, so this
method always returns "null". (In the future, it might return the
positively oriented object for which this object is the negative proxy.)
- Specified by:
getPrimitive
in interface org.opengis.geometry.primitive.OrientableCurve
- Specified by:
getPrimitive
in interface org.opengis.geometry.primitive.OrientablePrimitive
getContainingPrimitives
public final java.util.Set<org.opengis.geometry.primitive.Primitive> getContainingPrimitives()
- This implementation doesn't support traversing this association in
this direction, so this method always returns null.
- Specified by:
getContainingPrimitives
in interface org.opengis.geometry.primitive.Primitive
getComplexes
public final java.util.Set<org.opengis.geometry.complex.Complex> getComplexes()
- Specified by:
getComplexes
in interface org.opengis.geometry.primitive.Primitive
getContainedPrimitives
public final java.util.Set getContainedPrimitives()
- Specified by:
getContainedPrimitives
in interface org.opengis.geometry.primitive.Primitive
getProxy
public org.opengis.geometry.primitive.OrientablePrimitive[] getProxy()
- This implementation currently only supports positively oriented
primitives, so this method will always return null, indicating that this
object itself is the only instance in existence and that there are no
proxies for the positively and negatively oriented versions of this
primitive.
- Specified by:
getProxy
in interface org.opengis.geometry.primitive.Primitive
Copyright © 1996-2010 Geotools. All Rights Reserved.