org.geotools.geometry.iso.primitive
Class RingImplUnsafe
java.lang.Object
org.geotools.geometry.iso.root.GeometryImpl
org.geotools.geometry.iso.complex.ComplexImpl
org.geotools.geometry.iso.complex.CompositeImpl<OrientableCurveImpl>
org.geotools.geometry.iso.complex.CompositeCurveImpl
org.geotools.geometry.iso.primitive.RingImplUnsafe
- All Implemented Interfaces:
- java.io.Serializable, 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.primitive.Ring, org.opengis.geometry.TransfiniteSet
- Direct Known Subclasses:
- RingImpl
public class RingImplUnsafe
- extends CompositeCurveImpl
- implements org.opengis.geometry.primitive.Ring
This Ring implementation does not do a consistency
check. This Ring should only be used when the user knows the Ring is valid and doesn't
want to spend the expensive processing time to validate it upon creation. Otherwise,
RingImpl should be used which will validate when it is created.
- Author:
- Graham Davis
- See Also:
- Serialized Form
Constructor Summary |
RingImplUnsafe(java.util.List<org.opengis.geometry.primitive.OrientableCurve> generator)
Creates a Ring |
Methods inherited from class org.geotools.geometry.iso.complex.CompositeCurveImpl |
asLineString, asLineString, getComplexes, getComposite, getContainedPrimitives, getContainingPrimitives, getDimension, getDimension, getElements, getEnvelope, getGeneratorClass, getGenerators, getLength, getOrientation, getPrimitive, getProxy, split |
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl |
castToGeometryImpl, castToGeometryImpl, contains, contains, cRelate, crosses, difference, disjoint, distance, equals, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDistance, getMbRegion, getPositionFactory, getPrecision, intersection, intersects, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, union, within |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.complex.CompositeCurve |
getGenerators |
Methods inherited from interface org.opengis.geometry.complex.Complex |
getElements, getSubComplexes, getSuperComplexes, isMaximal |
Methods inherited from interface org.opengis.geometry.primitive.OrientableCurve |
getComposite, getPrimitive |
Methods inherited from interface org.opengis.geometry.primitive.OrientablePrimitive |
getOrientation |
Methods inherited from interface org.opengis.geometry.primitive.Primitive |
getComplexes, getContainedPrimitives, getContainingPrimitives, getProxy |
Methods inherited from interface org.opengis.geometry.Geometry |
distance, getBuffer, getCentroid, getClosure, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDimension, getEnvelope, getMaximalComplex, getMbRegion, getPrecision, isMutable, toImmutable, transform |
Methods inherited from interface org.opengis.geometry.TransfiniteSet |
contains, contains, difference, equals, intersection, intersects, symmetricDifference, union |
RingImplUnsafe
public RingImplUnsafe(java.util.List<org.opengis.geometry.primitive.OrientableCurve> generator)
- Creates a Ring
- Parameters:
generator
-
clone
public RingImplUnsafe clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface org.opengis.geometry.Geometry
- Overrides:
clone
in class CompositeCurveImpl
- Throws:
java.lang.CloneNotSupportedException
getBoundary
public org.opengis.geometry.primitive.CurveBoundary getBoundary()
- 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 CompositeCurveImpl
createBoundary
public java.util.Set<org.opengis.geometry.complex.Complex> createBoundary()
- Overrides:
createBoundary
in class CompositeCurveImpl
- Returns:
- Set
getSurfaceBoundary
public SurfaceBoundaryImpl getSurfaceBoundary()
- Returns:
- Returns the surfaceBoundary.
setSurfaceBoundary
public void setSurfaceBoundary(SurfaceBoundaryImpl surfaceBoundary)
- Parameters:
surfaceBoundary
- The surfaceBoundary to set.
isSimple
public boolean isSimple()
- Specified by:
isSimple
in interface org.opengis.geometry.Geometry
- Specified by:
isSimple
in interface org.opengis.geometry.primitive.Ring
- Overrides:
isSimple
in class CompositeCurveImpl
isCycle
public boolean isCycle()
- Specified by:
isCycle
in interface org.opengis.geometry.Geometry
- Overrides:
isCycle
in class GeometryImpl
asDirectPositions
public java.util.List<org.opengis.geometry.DirectPosition> asDirectPositions()
- Returns:
getRepresentativePoint
public org.opengis.geometry.DirectPosition getRepresentativePoint()
- Specified by:
getRepresentativePoint
in interface org.opengis.geometry.Geometry
- Overrides:
getRepresentativePoint
in class CompositeCurveImpl
toString
public java.lang.String toString()
- Overrides:
toString
in class CompositeCurveImpl
hashCode
public int hashCode()
- Overrides:
hashCode
in class CompositeCurveImpl
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class CompositeCurveImpl
transform
public org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS,
org.opengis.referencing.operation.MathTransform transform)
throws org.opengis.geometry.MismatchedDimensionException,
org.opengis.referencing.operation.TransformException
- Specified by:
transform
in interface org.opengis.geometry.Geometry
- Overrides:
transform
in class GeometryImpl
- Throws:
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException
Copyright © 1996-2010 Geotools. All Rights Reserved.