|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Geometry
The Geometry interface defines the methods for the Geometry subclasses. Geometry is the root class of the hierarchy and is an abstract, non-instantiable class. Only the subclasses of Geometry are instantiable. The instances of the subclasses of Geometry create zero, one and two-dimensional geometric objects that exist in two-dimensional coordiante space.
Method Summary | |
---|---|
java.io.ByteArrayOutputStream |
asBinary()
Asbinary takes a geometry object and returns its well-known binary representation. |
java.lang.String |
asText()
Astext takes a geometry object and returns its well-known text representation. |
Geometry |
boundary()
Boundary takes a geometry object and returns its combined boundary as a geometry object. |
Geometry |
buffer(double distance)
Buffer takes a geometry object and returns the geometry object that surrounds the source object. |
boolean |
contains(Geometry g)
Contains takes two geometry objects and returns t (TRUE) if first object completely contains the second. |
Geometry |
convexhull()
Returns the convex hull of a geometry object. |
boolean |
crosses(Geometry g)
Crosses takes two geometry objects and returns t (TRUE) if their intersection results in a geometry object whose dimension is one less than the maximum dimension of the source objects. |
Geometry |
difference(Geometry g)
Difference takes two geometry objects and returns a geometry object that is the difference of the source objects. |
int |
dimension()
Returns the dimension of a geometry object. |
boolean |
disjoint(Geometry g)
Disjoint takes two geometries and returns t (TRUE) if the intersection of two geometries produces an empty set; otherwise it returns f (FALSE). |
double |
distance(Geometry g)
Returns the closest distance separating two geometries. |
Geometry |
envelope()
Returns the bounding box of a geometry object as a geometry. |
boolean |
envelopesIntersect(Geometry g)
Envelopesintersect returns t (TRUE) if the envelopes of two geometries intersect, otherwise it returns f (FALSE). |
boolean |
equal(Geometry g)
Compares two geometries and returns t (TRUE) if the geometries are identical otherwise it returns f (FALSE). |
Geometry |
exterior()
The interior is the space occupied by the geometry. |
java.lang.String |
geometryType()
Geometrytype takes a geometry object and returns its geometry type as a string. |
Geometry |
interior()
The exterior of a geometry if all space not occupied by the geometry. |
boolean |
intersect(Geometry g)
Returns t (TRUE) if the intersection of two geometries doesn't result in an empty set; otherwise, returns f (FALSE). |
Geometry[] |
intersection(Geometry g)
Intersection takes two geometry objects and returns the intersection set as a geometry object. |
boolean |
is3D()
Returns t (TRUE) if the geometry object has three-dimensional coordinates; otherwise, returns f (FALSE). |
boolean |
isEmpty()
Returns t (TRUE) if the geometry is empty; otherwise returns f (FALSE). |
boolean |
isMeasured()
Returns t (TRUE) if the geometry object has measures; otherwise, returns f (FALSE). |
boolean |
isSimple()
Returns t (TRUE) if the geometry object is simple otherwise, it returns f (FALSE). |
boolean |
isValid()
Returns t (TRUE) if the geometry object is valid (obeys all the Simple Features rule for its type). |
Geometry |
locateAlong(double measure)
Locatealong takes a geometry object and a measure to return as a multipoint the set of points found at the measure. |
Geometry |
locateBetween(double measure1,
double measure2)
Locatebetween takes a geometry object and two measure locations and returns a linestring that represents the set of disconnected paths between the two measure locations. |
int |
numPoints()
Returns the number of points in a geometry. |
boolean |
overlap(Geometry g)
Overlap takes two geometry objects and returns t (TRUE) if the intersection of the objects results in a geometry object of the same dimension but not equal to either source object, otherwise it returns f (FALSE). |
int |
srid()
Srid takes a geometry object and returns its spatial reference system identity. |
Geometry |
symmetricDiff(Geometry g)
symmetricdiff takes two geometry objects and returns a geometry object that is composed of the parts of the source objects that aren't common to both. |
boolean |
touch(Geometry g)
Touch returns t (TRUE) if none of the points common to both geometries intersect the interiors of both geometries; otherwise it returns f (FALSE). |
Geometry |
union(Geometry g)
Union returns a geometry object that is the union of two source objects. |
boolean |
within(Geometry g)
Within takes two geometry objects and returns true if the first object is completely within the second, otherwise it returns false. |
Method Detail |
---|
Geometry interior() throws GeometryException
GeometryException
Geometry exterior() throws GeometryException
GeometryException
Geometry boundary() throws GeometryException
GeometryException
Geometry buffer(double distance) throws GeometryException
GeometryException
boolean isSimple() throws GeometryException
GeometryException
boolean isValid() throws GeometryException
GeometryException
boolean isEmpty() throws GeometryException
GeometryException
int numPoints() throws GeometryException
GeometryException
Geometry envelope() throws GeometryException
GeometryException
int dimension() throws GeometryException
GeometryException
boolean is3D() throws GeometryException
GeometryException
boolean isMeasured() throws GeometryException
GeometryException
int srid() throws GeometryException
GeometryException
java.lang.String geometryType() throws GeometryException
GeometryException
java.io.ByteArrayOutputStream asBinary() throws GeometryException
GeometryException
java.lang.String asText() throws GeometryException
GeometryException
Geometry convexhull() throws GeometryException
GeometryException
Geometry locateAlong(double measure) throws GeometryException
GeometryException
Geometry locateBetween(double measure1, double measure2) throws GeometryException
GeometryException
boolean envelopesIntersect(Geometry g) throws GeometryException
GeometryException
boolean equal(Geometry g) throws GeometryException
GeometryException
boolean disjoint(Geometry g) throws GeometryException
GeometryException
boolean intersect(Geometry g) throws GeometryException
GeometryException
boolean touch(Geometry g) throws GeometryException
GeometryException
boolean overlap(Geometry g) throws GeometryException
GeometryException
boolean crosses(Geometry g) throws GeometryException
GeometryException
boolean within(Geometry g) throws GeometryException
GeometryException
boolean contains(Geometry g) throws GeometryException
GeometryException
double distance(Geometry g) throws GeometryException
GeometryException
Geometry[] intersection(Geometry g) throws GeometryException
GeometryException
Geometry difference(Geometry g) throws GeometryException
GeometryException
Geometry union(Geometry g) throws GeometryException
GeometryException
Geometry symmetricDiff(Geometry g) throws GeometryException
GeometryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |