|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.root.GeometryImpl
public abstract class GeometryImpl
GeometryImpl is the root class of the geometric object taxonomy and supports methods common to all geographically referenced geometric objects. GeometryImpl instances are sets of direct positions in a particular coordinate reference system. A GeometryImpl can be regarded as an infinite set of points that satisfies the set operation interfaces for a set of direct positions, TransfiniteSet<DirectPosition>. Since an infinite collection class cannot be implemented directly, a boolean test for inclusion is provided by this class. NOTE As a type, GeometryImpl does not have a well-defined default state or value representation as a data type. Instantiated subclasses of GeometryImpl will.
Field Summary | |
---|---|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
|
protected org.opengis.geometry.Precision |
percision
|
Constructor Summary | |
---|---|
GeometryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
|
|
GeometryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs,
org.opengis.geometry.Precision pm)
|
Method Summary | |
---|---|
protected static GeometryImpl |
castToGeometryImpl(org.opengis.geometry.Geometry g)
Use this function to cast Geometry instances to a GeometryImpl instance. |
protected static GeometryImpl |
castToGeometryImpl(org.opengis.geometry.TransfiniteSet tf)
Use this function to cast TransfiniteSet instances to a GeometryImpl instance. |
abstract GeometryImpl |
clone()
|
boolean |
contains(org.opengis.geometry.DirectPosition position)
|
boolean |
contains(org.opengis.geometry.TransfiniteSet pointSet)
|
static boolean |
cRelate(org.opengis.geometry.Geometry g1,
org.opengis.geometry.Geometry g2,
java.lang.String intersectionPatternMatrix)
Verifies a boolean relation between two geometry objects |
boolean |
crosses(org.opengis.geometry.TransfiniteSet pointSet)
|
org.opengis.geometry.TransfiniteSet |
difference(org.opengis.geometry.TransfiniteSet pointSet)
|
boolean |
disjoint(org.opengis.geometry.TransfiniteSet pointSet)
This operator tests, whether an object is spatially disjoint with this Geometry object |
double |
distance(org.opengis.geometry.Geometry geometry)
Computes the distance between this and another geometry. |
boolean |
equals(org.opengis.geometry.TransfiniteSet pointSet)
|
abstract org.opengis.geometry.Boundary |
getBoundary()
|
org.opengis.geometry.Geometry |
getBuffer(double distance)
|
org.opengis.geometry.DirectPosition |
getCentroid()
|
org.opengis.geometry.complex.Complex |
getClosure()
|
org.opengis.geometry.Geometry |
getConvexHull()
|
int |
getCoordinateDimension()
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
abstract int |
getDimension(org.opengis.geometry.DirectPosition point)
|
double |
getDistance(org.opengis.geometry.Geometry geometry)
Deprecated. use distance() |
abstract org.opengis.geometry.Envelope |
getEnvelope()
|
org.opengis.geometry.Geometry |
getMbRegion()
Return a Primitive which represents the envelope of this Geometry instance (non-Javadoc) |
protected org.opengis.geometry.PositionFactory |
getPositionFactory()
|
org.opengis.geometry.Precision |
getPrecision()
|
abstract org.opengis.geometry.DirectPosition |
getRepresentativePoint()
|
org.opengis.geometry.TransfiniteSet |
intersection(org.opengis.geometry.TransfiniteSet pointSet)
|
boolean |
intersects(org.opengis.geometry.TransfiniteSet pointSet)
|
boolean |
isCycle()
|
boolean |
isMutable()
|
boolean |
overlaps(org.opengis.geometry.TransfiniteSet pointSet)
This operator tests, whether an object overlaps with this object. |
boolean |
relate(org.opengis.geometry.Geometry aOther,
java.lang.String intersectionPatternMatrix)
Verifies a boolean relation between two geometry objects |
org.opengis.geometry.TransfiniteSet |
symmetricDifference(org.opengis.geometry.TransfiniteSet pointSet)
|
org.opengis.geometry.Geometry |
toImmutable()
|
boolean |
touches(org.opengis.geometry.TransfiniteSet pointSet)
This operator tests, whether an object touches this object in an edge or point |
org.opengis.geometry.Geometry |
transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS)
|
org.opengis.geometry.Geometry |
transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS,
org.opengis.referencing.operation.MathTransform transform)
|
org.opengis.geometry.TransfiniteSet |
union(org.opengis.geometry.TransfiniteSet pointSet)
|
boolean |
within(org.opengis.geometry.TransfiniteSet pointSet)
This operator tests, whether an object is spatially within this Geometry object |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.Geometry |
---|
getMaximalComplex, isSimple |
Field Detail |
---|
protected final org.opengis.referencing.crs.CoordinateReferenceSystem crs
protected final org.opengis.geometry.Precision percision
Constructor Detail |
---|
public GeometryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.opengis.geometry.Precision pm)
public GeometryImpl(org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
Method Detail |
---|
public abstract GeometryImpl clone() throws java.lang.CloneNotSupportedException
clone
in interface org.opengis.geometry.Geometry
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public abstract org.opengis.geometry.Boundary getBoundary()
getBoundary
in interface org.opengis.geometry.Geometry
public abstract int getDimension(org.opengis.geometry.DirectPosition point)
getDimension
in interface org.opengis.geometry.Geometry
public abstract org.opengis.geometry.Envelope getEnvelope()
getEnvelope
in interface org.opengis.geometry.Geometry
public abstract org.opengis.geometry.DirectPosition getRepresentativePoint()
getRepresentativePoint
in interface org.opengis.geometry.Geometry
public boolean isMutable()
isMutable
in interface org.opengis.geometry.Geometry
public org.opengis.geometry.Geometry toImmutable()
toImmutable
in interface org.opengis.geometry.Geometry
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface org.opengis.geometry.Geometry
public org.opengis.geometry.Precision getPrecision()
getPrecision
in interface org.opengis.geometry.Geometry
public int getCoordinateDimension()
getCoordinateDimension
in interface org.opengis.geometry.Geometry
public org.opengis.geometry.Geometry transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCRS) throws org.opengis.referencing.operation.TransformException
transform
in interface org.opengis.geometry.Geometry
org.opengis.referencing.operation.TransformException
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
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException
public final double getDistance(org.opengis.geometry.Geometry geometry)
org.opengis.geometry.coordinate.root.Geometry#getDistance(org.opengis.geometry.coordinate.root.Geometry)
public final double distance(org.opengis.geometry.Geometry geometry)
distance
in interface org.opengis.geometry.Geometry
org.opengis.geometry.coordinate.root.Geometry#distance(org.opengis.geometry.coordinate.root.Geometry)
public org.opengis.geometry.Geometry getBuffer(double distance)
getBuffer
in interface org.opengis.geometry.Geometry
public org.opengis.geometry.Geometry getMbRegion()
getMbRegion
in interface org.opengis.geometry.Geometry
org.opengis.geometry.coordinate.root.Geometry#getMbRegion()
public org.opengis.geometry.DirectPosition getCentroid()
getCentroid
in interface org.opengis.geometry.Geometry
public org.opengis.geometry.Geometry getConvexHull()
getConvexHull
in interface org.opengis.geometry.Geometry
public static boolean cRelate(org.opengis.geometry.Geometry g1, org.opengis.geometry.Geometry g2, java.lang.String intersectionPatternMatrix) throws UnsupportedDimensionException
geom1
- geom2
- intersectionPatternMatrix
-
UnsupportedDimensionException
public boolean relate(org.opengis.geometry.Geometry aOther, java.lang.String intersectionPatternMatrix) throws UnsupportedDimensionException
aOther
- intersectionPatternMatrix
-
UnsupportedDimensionException
public boolean contains(org.opengis.geometry.TransfiniteSet pointSet)
contains
in interface org.opengis.geometry.TransfiniteSet
public boolean within(org.opengis.geometry.TransfiniteSet pointSet)
pointSet
- Another Object
public boolean contains(org.opengis.geometry.DirectPosition position)
contains
in interface org.opengis.geometry.TransfiniteSet
public boolean intersects(org.opengis.geometry.TransfiniteSet pointSet)
intersects
in interface org.opengis.geometry.TransfiniteSet
public boolean disjoint(org.opengis.geometry.TransfiniteSet pointSet)
pointSet
- The other object
public boolean equals(org.opengis.geometry.TransfiniteSet pointSet)
equals
in interface org.opengis.geometry.TransfiniteSet
public boolean touches(org.opengis.geometry.TransfiniteSet pointSet)
pointSet
- The other object
public boolean overlaps(org.opengis.geometry.TransfiniteSet pointSet)
pointSet
- The other object
public boolean crosses(org.opengis.geometry.TransfiniteSet pointSet)
public org.opengis.geometry.TransfiniteSet union(org.opengis.geometry.TransfiniteSet pointSet)
union
in interface org.opengis.geometry.TransfiniteSet
public org.opengis.geometry.TransfiniteSet intersection(org.opengis.geometry.TransfiniteSet pointSet)
intersection
in interface org.opengis.geometry.TransfiniteSet
public org.opengis.geometry.TransfiniteSet difference(org.opengis.geometry.TransfiniteSet pointSet)
difference
in interface org.opengis.geometry.TransfiniteSet
public org.opengis.geometry.TransfiniteSet symmetricDifference(org.opengis.geometry.TransfiniteSet pointSet)
symmetricDifference
in interface org.opengis.geometry.TransfiniteSet
public org.opengis.geometry.complex.Complex getClosure()
getClosure
in interface org.opengis.geometry.Geometry
public boolean isCycle()
isCycle
in interface org.opengis.geometry.Geometry
protected static GeometryImpl castToGeometryImpl(org.opengis.geometry.Geometry g)
g
- Geometry instance
protected static GeometryImpl castToGeometryImpl(org.opengis.geometry.TransfiniteSet tf)
tf
-
protected org.opengis.geometry.PositionFactory getPositionFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |