|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.standard.AbstractDefaultGeometry org.deegree.geometry.standard.primitive.DefaultSurface
public class DefaultSurface
Default implementation of Surface
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Surface |
---|
Surface.SurfaceType |
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.GeometricPrimitive |
---|
GeometricPrimitive.PrimitiveType |
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
---|
Geometry.GeometryType |
Field Summary | |
---|---|
protected List<? extends SurfacePatch> |
patches
|
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
crs, env, id, jtsFactory, jtsGeometry, pm |
Constructor Summary | |
---|---|
DefaultSurface(String id,
ICRS crs,
PrecisionModel pm,
List<? extends SurfacePatch> patches)
Creates a new DefaultSurface instance from the given parameters. |
Method Summary | |
---|---|
protected com.vividsolutions.jts.geom.Geometry |
buildJTSGeometry()
|
Measure |
getArea(Unit requestedBaseUnit)
|
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
Points |
getExteriorRingCoordinates()
Convenience method for accessing the control points of the exterior ring of a simple polygon surface. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY . |
Point |
getInteriorPoint()
|
List<Points> |
getInteriorRingsCoordinates()
Convenience method for accessing the control points of the interior rings of a simple polygon surface. |
List<? extends SurfacePatch> |
getPatches()
Returns the patches that constitute this surface. |
Measure |
getPerimeter(Unit requestedUnit)
|
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Surface . |
Surface.SurfaceType |
getSurfaceType()
Returns the type of surface. |
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.geometry.Geometry |
---|
contains, crosses, equals, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, getEnvelope, getId, getIntersection, getPrecision, getUnion, intersects, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
---|
getGMLProperties |
Field Detail |
---|
protected List<? extends SurfacePatch> patches
Constructor Detail |
---|
public DefaultSurface(String id, ICRS crs, PrecisionModel pm, List<? extends SurfacePatch> patches)
DefaultSurface
instance from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullpatches
- patches that constitute the surfaceMethod Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Surface
GeometricPrimitive.PrimitiveType.Surface
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Surface
GeometricPrimitive.PrimitiveType.Surface
public Surface.SurfaceType getSurfaceType()
Surface
getSurfaceType
in interface Surface
public Measure getArea(Unit requestedBaseUnit)
getArea
in interface Surface
public Point getInteriorPoint()
public List<? extends SurfacePatch> getPatches()
Surface
getPatches
in interface Surface
public Measure getPerimeter(Unit requestedUnit)
getPerimeter
in interface Surface
public Points getExteriorRingCoordinates()
Surface
NOTE: This method is only safe to use when the surface consists of a single planar patch that has a linear interpolated exterior ring.
getExteriorRingCoordinates
in interface Surface
public List<Points> getInteriorRingsCoordinates()
Surface
NOTE: This method is only safe to use when the surface consists of a single planar patch that has linear interpolated interior rings.
getInteriorRingsCoordinates
in interface Surface
protected com.vividsolutions.jts.geom.Geometry buildJTSGeometry()
buildJTSGeometry
in class AbstractDefaultGeometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |