|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.geometry.standard.surfacepatches.DefaultPolygonPatch
public class DefaultPolygonPatch
Default implementation of PolygonPatch.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.patches.PolygonPatch |
|---|
PolygonPatch.PolygonPatchType |
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.patches.SurfacePatch |
|---|
SurfacePatch.SurfacePatchType |
| Constructor Summary | |
|---|---|
DefaultPolygonPatch(Ring exteriorRing,
java.util.List<Ring> interiorRings)
Creates a new DefaultPolygonPatch instance from the given parameters. |
|
| Method Summary | |
|---|---|
Measure |
getArea(Unit requestedBaseUnit)
Returns the area covered by the patch. |
java.util.List<Ring> |
getBoundaryRings()
Returns the boundary rings (interior + exteriors) |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the patch is embedded in. |
Ring |
getExteriorRing()
Returns the exterior ring of the patch. |
java.util.List<Ring> |
getInteriorRings()
Returns the interior rings (holes) of the patch. |
PolygonPatch.PolygonPatchType |
getPolygonPatchType()
|
SurfacePatch.SurfacePatchType |
getSurfacePatchType()
Returns the type of surface patch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPolygonPatch(Ring exteriorRing,
java.util.List<Ring> interiorRings)
DefaultPolygonPatch instance from the given parameters.
exteriorRing - ring that defines the outer boundary, may be null (see section 9.2.2.5 of GML spec)interiorRings - list of rings that define the inner boundaries, may be empty or null| Method Detail |
|---|
public int getCoordinateDimension()
SurfacePatch
getCoordinateDimension in interface SurfacePatchpublic Measure getArea(Unit requestedBaseUnit)
SurfacePatch
getArea in interface SurfacePatchpublic Ring getExteriorRing()
PolygonPatchPlease note that the exterior may be empty (null). The following explanation is from the GML 3.1.1 spec (section 9.2.2.5): In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.
getExteriorRing in interface PolygonPatchpublic java.util.List<Ring> getInteriorRings()
PolygonPatch
getInteriorRings in interface PolygonPatchpublic java.util.List<Ring> getBoundaryRings()
PolygonPatch
getBoundaryRings in interface PolygonPatchpublic SurfacePatch.SurfacePatchType getSurfacePatchType()
SurfacePatch
getSurfacePatchType in interface SurfacePatchpublic PolygonPatch.PolygonPatchType getPolygonPatchType()
getPolygonPatchType in interface PolygonPatch
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||