org.geotools.geometry.jts.spatialschema.geometry.geometry
Class PolygonImpl
java.lang.Object
org.geotools.geometry.jts.spatialschema.geometry.geometry.GenericSurfaceImpl
org.geotools.geometry.jts.spatialschema.geometry.primitive.SurfacePatchImpl
org.geotools.geometry.jts.spatialschema.geometry.geometry.PolygonImpl
- All Implemented Interfaces:
- JTSGeometry, org.opengis.geometry.coordinate.GenericSurface, org.opengis.geometry.coordinate.Polygon, org.opengis.geometry.primitive.SurfacePatch
public class PolygonImpl
- extends SurfacePatchImpl
- implements org.opengis.geometry.coordinate.Polygon
Constructor Summary |
PolygonImpl(org.opengis.geometry.primitive.SurfaceBoundary boundary)
|
PolygonImpl(org.opengis.geometry.primitive.SurfaceBoundary boundary,
java.util.List spanningSurface)
|
Method Summary |
com.vividsolutions.jts.geom.Geometry |
calculateJTSPeer()
|
int |
getNumDerivativesOnBoundary()
Specifies the type of continuity between this surface patch and its immediate neighbors
with which it shares a boundary curve. |
java.util.List |
getSpanningSurface()
|
org.opengis.geometry.coordinate.PolyhedralSurface |
getSurface()
Returns the patch which own this surface patch. |
boolean |
isValid()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.coordinate.Polygon |
getBoundary |
Methods inherited from interface org.opengis.geometry.primitive.SurfacePatch |
getInterpolation |
Methods inherited from interface org.opengis.geometry.coordinate.GenericSurface |
getArea, getPerimeter, getUpNormal |
PolygonImpl
public PolygonImpl(org.opengis.geometry.primitive.SurfaceBoundary boundary)
PolygonImpl
public PolygonImpl(org.opengis.geometry.primitive.SurfaceBoundary boundary,
java.util.List spanningSurface)
getNumDerivativesOnBoundary
public int getNumDerivativesOnBoundary()
- Description copied from class:
SurfacePatchImpl
- Specifies the type of continuity between this surface patch and its immediate neighbors
with which it shares a boundary curve. The sequence of values corresponds to the
rings in the surface boundary returned by
SurfacePatchImpl.getBoundary()
for this patch. The default value of "0" means simple continuity, which
is a mandatory minimum level of continuity. This level is referred to as "C0" in
mathematical texts. A value of 1 means that the functions are continuous and differentiable
at the appropriate end point: "C1" continuity. A value of "n" for any integer means
n-times differentiable: "Cn" continuity.
- Specified by:
getNumDerivativesOnBoundary
in interface org.opengis.geometry.primitive.SurfacePatch
- Specified by:
getNumDerivativesOnBoundary
in class SurfacePatchImpl
- Returns:
- The type of continuity between this surface patch and its immediate neighbors.
calculateJTSPeer
public com.vividsolutions.jts.geom.Geometry calculateJTSPeer()
- Specified by:
calculateJTSPeer
in class SurfacePatchImpl
- Returns:
- See Also:
com.polexis.lite.spatialschema.geometry.primitive.SurfacePatchImpl#calculateJTSPeer()
getSurface
public org.opengis.geometry.coordinate.PolyhedralSurface getSurface()
- Description copied from class:
SurfacePatchImpl
- Returns the patch which own this surface patch.
NOTE: In this specification, surface patches do not appear except in the
context of a surface, and therefore this method should never returns null
which would preclude the use of surface patches except in this manner. While this would
not affect this specification, allowing null
owner allows other standards
based on this one to use surface patches in a more open-ended manner.
- Specified by:
getSurface
in interface org.opengis.geometry.coordinate.Polygon
- Specified by:
getSurface
in interface org.opengis.geometry.primitive.SurfacePatch
- Overrides:
getSurface
in class SurfacePatchImpl
- Returns:
- The owner of this surface patch, or
null
if none. - See Also:
Surface.getPatches()
getSpanningSurface
public java.util.List getSpanningSurface()
- Specified by:
getSpanningSurface
in interface org.opengis.geometry.coordinate.Polygon
- Returns:
- See Also:
Polygon.getSpanningSurface()
isValid
public boolean isValid()
Copyright © 1996-2010 Geotools. All Rights Reserved.