|
||||||||||
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.DefaultSolid
public class DefaultSolid
Default implementation of Solid
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Solid |
---|
Solid.SolidType |
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 |
---|
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
crs, env, id, jtsFactory, jtsGeometry, pm |
Constructor Summary | |
---|---|
DefaultSolid(String id,
ICRS crs,
PrecisionModel pm,
Surface exteriorSurface,
List<Surface> interiorSurfaces)
Creates a new DefaultSolid instance from the given parameters. |
Method Summary | |
---|---|
Measure |
getArea(Unit requestedBaseUnit)
|
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Surface |
getExteriorSurface()
Returns the exterior surface (shell) of the solid. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType#PRIMITIVE_GEOMETRY . |
List<Surface> |
getInteriorSurfaces()
Returns the interior surfaces of the solid. |
GeometricPrimitive.PrimitiveType |
getPrimitiveType()
Must always return GeometricPrimitive.PrimitiveType.Solid . |
Solid.SolidType |
getSolidType()
Returns the type of solid. |
Measure |
getVolume(Unit requestedBaseUnit)
|
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
buildJTSGeometry, contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getDifference, getDistance, 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, 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 |
Constructor Detail |
---|
public DefaultSolid(String id, ICRS crs, PrecisionModel pm, Surface exteriorSurface, List<Surface> interiorSurfaces)
DefaultSolid
instance from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullexteriorSurface
- the exterior surface (shell) of the solid, may be nullinteriorSurfaces
- the interior surfaces of the solid, may be null or emptyMethod Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Surface getExteriorSurface()
Solid
Please note that this method may return null. The following explanation is from the GML 3.1.1 schema (geometryPrimitives.xsd): In normal 3-dimensional Euclidean space, one (composite) surface is distinguished as the exterior. In the more general case, this is not always possible.
getExteriorSurface
in interface Solid
public List<Surface> getInteriorSurfaces()
Solid
getInteriorSurfaces
in interface Solid
public GeometricPrimitive.PrimitiveType getPrimitiveType()
Solid
GeometricPrimitive.PrimitiveType.Solid
.
getPrimitiveType
in interface GeometricPrimitive
getPrimitiveType
in interface Solid
GeometricPrimitive.PrimitiveType.Solid
public Solid.SolidType getSolidType()
Solid
getSolidType
in interface Solid
public Geometry.GeometryType getGeometryType()
GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
.
getGeometryType
in interface Geometry
getGeometryType
in interface GeometricPrimitive
Geometry.GeometryType#PRIMITIVE_GEOMETRY
public Measure getArea(Unit requestedBaseUnit)
getArea
in interface Solid
public Measure getVolume(Unit requestedBaseUnit)
getVolume
in interface Solid
public Envelope getEnvelope()
Geometry
getEnvelope
in interface Geometry
getEnvelope
in class AbstractDefaultGeometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |