com.esri.sde.sdk.geom
Interface Geometry

All Known Subinterfaces:
Curve, GeometryCollection, Linestring, MultiCurve, MultiLinestring, MultiPoint, MultiPolygon, MultiSurface, Point, Polygon, Surface
All Known Implementing Classes:
SeCurve, SeGeometry, SeGeometryCollection, SeLinestring, SeMultiCurve, SeMultiLinestring, SeMultiPoint, SeMultiPolygon, SeMultiSurface, SePoint, SePolygon, SeSurface

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

interior

Geometry interior()
                  throws GeometryException
The exterior of a geometry if all space not occupied by the geometry.

Throws:
GeometryException

exterior

Geometry exterior()
                  throws GeometryException
The interior is the space occupied by the geometry.

Throws:
GeometryException

boundary

Geometry boundary()
                  throws GeometryException
Boundary takes a geometry object and returns its combined boundary as a geometry object.

Throws:
GeometryException

buffer

Geometry buffer(double distance)
                throws GeometryException
Buffer takes a geometry object and returns the geometry object that surrounds the source object.

Throws:
GeometryException

isSimple

boolean isSimple()
                 throws GeometryException
Returns t (TRUE) if the geometry object is simple otherwise, it returns f (FALSE).

Throws:
GeometryException

isValid

boolean isValid()
                throws GeometryException
Returns t (TRUE) if the geometry object is valid (obeys all the Simple Features rule for its type).

Throws:
GeometryException

isEmpty

boolean isEmpty()
                throws GeometryException
Returns t (TRUE) if the geometry is empty; otherwise returns f (FALSE).

Throws:
GeometryException

numPoints

int numPoints()
              throws GeometryException
Returns the number of points in a geometry.

Throws:
GeometryException

envelope

Geometry envelope()
                  throws GeometryException
Returns the bounding box of a geometry object as a geometry.

Throws:
GeometryException

dimension

int dimension()
              throws GeometryException
Returns the dimension of a geometry object.

Throws:
GeometryException

is3D

boolean is3D()
             throws GeometryException
Returns t (TRUE) if the geometry object has three-dimensional coordinates; otherwise, returns f (FALSE).

Throws:
GeometryException

isMeasured

boolean isMeasured()
                   throws GeometryException
Returns t (TRUE) if the geometry object has measures; otherwise, returns f (FALSE).

Throws:
GeometryException

srid

int srid()
         throws GeometryException
Srid takes a geometry object and returns its spatial reference system identity.

Throws:
GeometryException

geometryType

java.lang.String geometryType()
                              throws GeometryException
Geometrytype takes a geometry object and returns its geometry type as a string.

Throws:
GeometryException

asBinary

java.io.ByteArrayOutputStream asBinary()
                                       throws GeometryException
Asbinary takes a geometry object and returns its well-known binary representation.

Throws:
GeometryException

asText

java.lang.String asText()
                        throws GeometryException
Astext takes a geometry object and returns its well-known text representation.

Throws:
GeometryException

convexhull

Geometry convexhull()
                    throws GeometryException
Returns the convex hull of a geometry object.

Throws:
GeometryException

locateAlong

Geometry locateAlong(double measure)
                     throws GeometryException
Locatealong takes a geometry object and a measure to return as a multipoint the set of points found at the measure.

Throws:
GeometryException

locateBetween

Geometry locateBetween(double measure1,
                       double measure2)
                       throws GeometryException
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.

Throws:
GeometryException

envelopesIntersect

boolean envelopesIntersect(Geometry g)
                           throws GeometryException
Envelopesintersect returns t (TRUE) if the envelopes of two geometries intersect, otherwise it returns f (FALSE).

Throws:
GeometryException

equal

boolean equal(Geometry g)
              throws GeometryException
Compares two geometries and returns t (TRUE) if the geometries are identical otherwise it returns f (FALSE).

Throws:
GeometryException

disjoint

boolean disjoint(Geometry g)
                 throws GeometryException
Disjoint takes two geometries and returns t (TRUE) if the intersection of two geometries produces an empty set; otherwise it returns f (FALSE).

Throws:
GeometryException

intersect

boolean intersect(Geometry g)
                  throws GeometryException
Returns t (TRUE) if the intersection of two geometries doesn't result in an empty set; otherwise, returns f (FALSE).

Throws:
GeometryException

touch

boolean touch(Geometry g)
              throws GeometryException
Touch returns t (TRUE) if none of the points common to both geometries intersect the interiors of both geometries; otherwise it returns f (FALSE). At least one geometry must be a linestring, polygon, multilinestring, or multipolygon.

Throws:
GeometryException

overlap

boolean overlap(Geometry g)
                throws GeometryException
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).

Throws:
GeometryException

crosses

boolean crosses(Geometry g)
                throws GeometryException
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. The intersection object must contain points that are interior to both source geometries and it is not equal to either of the source objects. Otherwise it returns f (FALSE).

Throws:
GeometryException

within

boolean within(Geometry g)
               throws GeometryException
Within takes two geometry objects and returns true if the first object is completely within the second, otherwise it returns false.

Throws:
GeometryException

contains

boolean contains(Geometry g)
                 throws GeometryException
Contains takes two geometry objects and returns t (TRUE) if first object completely contains the second. Otherwise it returns f (FALSE).

Throws:
GeometryException

distance

double distance(Geometry g)
                throws GeometryException
Returns the closest distance separating two geometries.

Throws:
GeometryException

intersection

Geometry[] intersection(Geometry g)
                        throws GeometryException
Intersection takes two geometry objects and returns the intersection set as a geometry object.

Throws:
GeometryException

difference

Geometry difference(Geometry g)
                    throws GeometryException
Difference takes two geometry objects and returns a geometry object that is the difference of the source objects.

Throws:
GeometryException

union

Geometry union(Geometry g)
               throws GeometryException
Union returns a geometry object that is the union of two source objects.

Throws:
GeometryException

symmetricDiff

Geometry symmetricDiff(Geometry g)
                       throws GeometryException
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.

Throws:
GeometryException