|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
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. |
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. |
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, 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 nullMethod Detail |
---|
public int getCoordinateDimension()
SurfacePatch
getCoordinateDimension
in interface SurfacePatch
public Measure getArea(Unit requestedBaseUnit)
SurfacePatch
getArea
in interface SurfacePatch
public Ring getExteriorRing()
PolygonPatch
Please 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 PolygonPatch
public List<Ring> getInteriorRings()
PolygonPatch
getInteriorRings
in interface PolygonPatch
public List<Ring> getBoundaryRings()
PolygonPatch
getBoundaryRings
in interface PolygonPatch
public SurfacePatch.SurfacePatchType getSurfacePatchType()
SurfacePatch
getSurfacePatchType
in interface SurfacePatch
public PolygonPatch.PolygonPatchType getPolygonPatchType()
getPolygonPatchType
in interface PolygonPatch
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |