org.deegree.geometry.standard.primitive
Class DefaultLinearRing
java.lang.Object
   org.deegree.geometry.standard.AbstractDefaultGeometry
org.deegree.geometry.standard.AbstractDefaultGeometry
       org.deegree.geometry.standard.primitive.DefaultRing
org.deegree.geometry.standard.primitive.DefaultRing
           org.deegree.geometry.standard.primitive.DefaultLinearRing
org.deegree.geometry.standard.primitive.DefaultLinearRing
- All Implemented Interfaces: 
- Geometry, Curve, GeometricPrimitive, LinearRing, Ring, GMLObject
- public class DefaultLinearRing 
- extends DefaultRing- implements LinearRing
Default implementation of Ring.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
 
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Ring | 
| Ring.RingType | 
 
| Nested classes/interfaces inherited from interface org.deegree.geometry.primitive.Curve | 
| Curve.CurveType | 
 
 
 
 
 
 
 
 
 
| 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, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, toString, touches | 
 
 
| Methods inherited from interface org.deegree.geometry.primitive.Ring | 
| getMembers | 
 
 
 
| 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, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches | 
 
 
DefaultLinearRing
public DefaultLinearRing(String id,
                         CRS crs,
                         PrecisionModel pm,
                         Points controlPoints)
- Creates a new DefaultLinearRinginstance from the given parameters.
 
- Parameters:
- id- identifier, may be null
- crs- coordinate reference system, may be null
- pm- precision model, may be null
- controlPoints-
 
getCoordinateDimension
public int getCoordinateDimension()
- Description copied from interface: Geometry
- Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in.
 
- 
- Specified by:
- getCoordinateDimensionin interface- Geometry
- Overrides:
- getCoordinateDimensionin class- DefaultRing
 
- 
- Returns:
- the coordinate dimension
 
getCurveType
public Curve.CurveType getCurveType()
- Description copied from interface: Ring
- Must always return Curve.CurveType.Ring.
 
- 
- Specified by:
- getCurveTypein interface- Curve
- Specified by:
- getCurveTypein interface- Ring
- Overrides:
- getCurveTypein class- DefaultRing
 
- 
- Returns:
- Curve.CurveType.Ring
 
getRingType
public Ring.RingType getRingType()
- Description copied from interface: Ring
- Returns the type of ring.
 
- 
- Specified by:
- getRingTypein interface- LinearRing
- Specified by:
- getRingTypein interface- Ring
- Overrides:
- getRingTypein class- DefaultRing
 
- 
- Returns:
- the type of ring
 
getAsLineString
public LineString getAsLineString()
- Description copied from interface: Curve
- Returns a linear interpolated representation of the curve.
 
 NOTE: This method is only safe to use when the curve is a LineStringorLinearRingor it only
 consists ofLineStringSegments. In any other case it will fail.
 
 
- 
- Specified by:
- getAsLineStringin interface- Curve
- Overrides:
- getAsLineStringin class- DefaultRing
 
- 
- Returns:
- curve as a linestring
 
getControlPoints
public Points getControlPoints()
- Description copied from interface: Curve
- Convenience method for accessing the control points of linear interpolated curves.
 
 NOTE: This method is only safe to use when the curve is a LineStringorLinearRingor it only
 consists ofLineStringSegments. In any other case it will fail.
 
 
- 
- Specified by:
- getControlPointsin interface- Curve
- Overrides:
- getControlPointsin class- DefaultRing
 
- 
- Returns:
- the control points
 
buildJTSGeometry
protected com.vividsolutions.jts.geom.LinearRing buildJTSGeometry()
- 
- Overrides:
- buildJTSGeometryin class- DefaultRing
 
- 
 
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>