|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.root.GeometryImpl
org.geotools.geometry.iso.primitive.PrimitiveImpl
org.geotools.geometry.iso.primitive.PointImpl
public class PointImpl
Point is the basic data type for a geometric object consisting of one and only one point.
Field Summary |
---|
Fields inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl |
---|
complex, containedPrimitive, containingPrimitive |
Fields inherited from class org.geotools.geometry.iso.root.GeometryImpl |
---|
crs, percision |
Constructor Summary | |
---|---|
PointImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
DirectPositionImpl dp)
The constructor PointImpl creates a Point at a given position, backed by the DirectPosition PointImpl::PointImpl(position : DirectPositionImpl) : PointImpl |
|
PointImpl(org.opengis.geometry.DirectPosition position)
|
Method Summary | |
---|---|
PointImpl |
clone()
|
boolean |
equals(org.opengis.geometry.TransfiniteSet pointSet)
|
org.opengis.geometry.primitive.Bearing |
getBearing(org.opengis.geometry.coordinate.Position toPoint)
The operation "bearing" returns the bearing, as a unit vector, of the tangent (at this Point) to the curve between this Point and a passed Position. |
org.opengis.geometry.primitive.PrimitiveBoundary |
getBoundary()
The operation "getBoundary" is a specialization of the boundary operation at Object, and returns a NULL value indication an empty set. |
org.opengis.geometry.DirectPosition |
getCentroid()
|
org.opengis.geometry.complex.Complex |
getClosure()
|
int |
getDimension(org.opengis.geometry.DirectPosition point)
The method getDimension returns the inherent dimension of
this Object, which is less than or equal to the coordinate dimension. |
DirectPositionImpl |
getDirectPosition()
|
org.opengis.geometry.Envelope |
getEnvelope()
The method getEnvelope returns the minimum bounding box
for this Object. |
DirectPositionImpl |
getPosition()
Deprecated. |
org.opengis.geometry.primitive.OrientablePrimitive[] |
getProxy()
|
org.opengis.geometry.DirectPosition |
getRepresentativePoint()
|
boolean |
isCycle()
|
boolean |
isSimple()
|
void |
setDirectPosition(org.opengis.geometry.DirectPosition p)
|
void |
setPosition(org.opengis.geometry.DirectPosition p)
Deprecated. |
java.lang.String |
toString()
Overwrite toString method for WKT output |
org.opengis.geometry.Geometry |
transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS,
org.opengis.referencing.operation.MathTransform transform)
|
Methods inherited from class org.geotools.geometry.iso.primitive.PrimitiveImpl |
---|
addComplex, addContainedPrimitive, addContainingPrimitive, getComplexes, getComposite, getContainedPrimitives, getContainingPrimitives, getMaximalComplex |
Methods inherited from class org.geotools.geometry.iso.root.GeometryImpl |
---|
castToGeometryImpl, castToGeometryImpl, contains, contains, cRelate, crosses, difference, disjoint, distance, getBuffer, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getDistance, getMbRegion, getPositionFactory, getPrecision, intersection, intersects, isMutable, overlaps, relate, symmetricDifference, toImmutable, touches, transform, union, within |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.primitive.Primitive |
---|
getComplexes, getComposite, getContainedPrimitives, getContainingPrimitives |
Methods inherited from interface org.opengis.geometry.Geometry |
---|
distance, getBuffer, getConvexHull, getCoordinateDimension, getCoordinateReferenceSystem, getMaximalComplex, getMbRegion, getPrecision, isMutable, toImmutable, transform |
Methods inherited from interface org.opengis.geometry.TransfiniteSet |
---|
contains, contains, difference, intersection, intersects, symmetricDifference, union |
Constructor Detail |
---|
public PointImpl(org.opengis.geometry.DirectPosition position)
public PointImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, DirectPositionImpl dp)
crs
- dp
- Method Detail |
---|
public PointImpl clone() throws java.lang.CloneNotSupportedException
clone
in interface org.opengis.geometry.Geometry
clone
in class GeometryImpl
java.lang.CloneNotSupportedException
@Deprecated public DirectPositionImpl getPosition()
getPosition
in interface org.opengis.geometry.coordinate.Position
public DirectPositionImpl getDirectPosition()
getDirectPosition
in interface org.opengis.geometry.coordinate.Position
getDirectPosition
in interface org.opengis.geometry.primitive.Point
@Deprecated public void setPosition(org.opengis.geometry.DirectPosition p)
setPosition
in interface org.opengis.geometry.primitive.Point
p
- public void setDirectPosition(org.opengis.geometry.DirectPosition p)
setDirectPosition
in interface org.opengis.geometry.primitive.Point
public java.lang.String toString()
toString
in class java.lang.Object
public org.opengis.geometry.primitive.Bearing getBearing(org.opengis.geometry.coordinate.Position toPoint)
getBearing
in interface org.opengis.geometry.primitive.Point
toPoint
-
public int getDimension(org.opengis.geometry.DirectPosition point)
getDimension
returns the inherent dimension of
this Object, which is less than or equal to the coordinate dimension. The
dimension of a collection of geometric objects is the largest dimension
of any of its pieces. Points are 0-dimensional, curves are 1-dimensional,
surfaces are 2-dimensional, and solids are 3-dimensional. Locally, the
dimension of a geometric object at a point is the dimension of a local
neighborhood of the point - that is the dimension of any coordinate
neighborhood of the point. Dimension is unambiguously defined only for
DirectPositions interior to this Object. If the passed DirectPosition2D
is NULL, then the method returns the largest possible dimension for any
DirectPosition2D in this Object.
getDimension
in interface org.opengis.geometry.Geometry
getDimension
in class GeometryImpl
point
- a DirectPosition
value
int
public org.opengis.geometry.Envelope getEnvelope()
getEnvelope
returns the minimum bounding box
for this Object. There are cases for which the min and max positions
would be outside the domain of validity of the object's coordinate
reference system. This method is included here only as an interface, as
applications may choose to implement in different manners.
getEnvelope
in interface org.opengis.geometry.Geometry
getEnvelope
in class GeometryImpl
Envelope
with zero width and lengthpublic org.opengis.geometry.primitive.PrimitiveBoundary getBoundary()
getBoundary
in interface org.opengis.geometry.Geometry
getBoundary
in interface org.opengis.geometry.primitive.Point
getBoundary
in interface org.opengis.geometry.primitive.Primitive
getBoundary
in class PrimitiveImpl
public org.opengis.geometry.DirectPosition getRepresentativePoint()
getRepresentativePoint
in interface org.opengis.geometry.Geometry
getRepresentativePoint
in class GeometryImpl
public boolean isSimple()
isSimple
in interface org.opengis.geometry.Geometry
public boolean isCycle()
isCycle
in interface org.opengis.geometry.Geometry
isCycle
in class GeometryImpl
public org.opengis.geometry.DirectPosition getCentroid()
getCentroid
in interface org.opengis.geometry.Geometry
getCentroid
in class GeometryImpl
public org.opengis.geometry.primitive.OrientablePrimitive[] getProxy()
getProxy
in interface org.opengis.geometry.primitive.Point
getProxy
in interface org.opengis.geometry.primitive.Primitive
getProxy
in class PrimitiveImpl
public boolean equals(org.opengis.geometry.TransfiniteSet pointSet)
equals
in interface org.opengis.geometry.TransfiniteSet
equals
in class GeometryImpl
public org.opengis.geometry.complex.Complex getClosure()
getClosure
in interface org.opengis.geometry.Geometry
getClosure
in class GeometryImpl
public org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS, org.opengis.referencing.operation.MathTransform transform) throws org.opengis.geometry.MismatchedDimensionException, org.opengis.referencing.operation.TransformException
transform
in interface org.opengis.geometry.Geometry
transform
in class GeometryImpl
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |