com.esri.sde.sdk.geom
Class SeGeometryCollection

java.lang.Object
  extended by com.esri.sde.sdk.geom.SeGeometry
      extended by com.esri.sde.sdk.geom.SeGeometryCollection
All Implemented Interfaces:
Geometry, GeometryCollection, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
SeMultiCurve, SeMultiPoint, SeMultiSurface

public class SeGeometryCollection
extends SeGeometry
implements GeometryCollection, java.lang.Cloneable, java.io.Serializable

This class represents a geometric object that is a collection of 1 or more geometries. All the elements in a SeGeometryCollection must be in the same Spatial Reference. This is also the Spatial Reference for the SeGeometryCollection.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.sde.sdk.geom.SeGeometry
LINESTRING_TYPE, LINESTRINGM_TYPE, LINESTRINGZ_TYPE, LINESTRINGZM_TYPE, MULTILINESTRING_TYPE, MULTILINESTRINGM_TYPE, MULTILINESTRINGZ_TYPE, MULTILINESTRINGZM_TYPE, MULTIPOINT_TYPE, MULTIPOINTM_TYPE, MULTIPOINTZ_TYPE, MULTIPOINTZM_TYPE, MULTIPOLYGON_TYPE, MULTIPOLYGONM_TYPE, MULTIPOLYGONZ_TYPE, MULTIPOLYGONZM_TYPE, POINT_TYPE, POINTM_TYPE, POINTZ_TYPE, POINTZM_TYPE, POLYGON_TYPE, POLYGONM_TYPE, POLYGONZ_TYPE, POLYGONZM_TYPE, UNSPECIFIED_TYPE
 
Constructor Summary
SeGeometryCollection()
           
 
Method Summary
 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.
 Geometry convexhull()
          Returns the convex hull of a geometry object.
 int dimension()
          Returns the dimension of a geometry object.
 Geometry envelope()
          Returns the bounding box of a geometry object as a polygon.
 Geometry exterior()
          The interior is the space occupied by the geometry.
 Geometry geometryN(int n)
          Geometryn takes a collection and an integer index and returns the nth geometry object in the collection.
 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 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).
 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 numGeometries()
          Numgeometries takes a collection and returns the number of geometries in the collection.
 int numPoints()
          Returns the number of points in a geometry.
 
Methods inherited from class com.esri.sde.sdk.geom.SeGeometry
asBinary, asBinaryShape, asText, contains, crosses, difference, disjoint, distance, envelopesIntersect, equal, getMaxX, getMaxY, getMinX, getMinY, intersect, intersection, isValid, overlap, setCoordRef, srid, symmetricDiff, toSdeShape, toSeGeometry, toString, touch, union, within
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.sde.sdk.geom.Geometry
asBinary, asText, contains, crosses, difference, disjoint, distance, envelopesIntersect, equal, intersect, intersection, isValid, overlap, srid, symmetricDiff, touch, union, within
 

Constructor Detail

SeGeometryCollection

public SeGeometryCollection()
Method Detail

numGeometries

public int numGeometries()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Numgeometries takes a collection and returns the number of geometries in the collection.

Specified by:
numGeometries in interface GeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

geometryN

public Geometry geometryN(int n)
                   throws com.esri.sde.sdk.geom.SeGeometryException
Geometryn takes a collection and an integer index and returns the nth geometry object in the collection.

Specified by:
geometryN in interface GeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

interior

public Geometry interior()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Description copied from interface: Geometry
The exterior of a geometry if all space not occupied by the geometry.

Specified by:
interior in interface Geometry
Specified by:
interior in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

exterior

public Geometry exterior()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Description copied from interface: Geometry
The interior is the space occupied by the geometry.

Specified by:
exterior in interface Geometry
Specified by:
exterior in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

boundary

public Geometry boundary()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Description copied from interface: Geometry
Boundary takes a geometry object and returns its combined boundary as a geometry object.

Specified by:
boundary in interface Geometry
Specified by:
boundary in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

buffer

public Geometry buffer(double distance)
                throws com.esri.sde.sdk.geom.SeGeometryException
Buffer takes a geometry object and returns the geometry object that surrounds the source object.

Specified by:
buffer in interface Geometry
Specified by:
buffer in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

isSimple

public boolean isSimple()
                 throws com.esri.sde.sdk.geom.SeGeometryException
Returns t (TRUE) if the geometry object is simple otherwise, it returns f (FALSE).

Specified by:
isSimple in interface Geometry
Specified by:
isSimple in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

isEmpty

public boolean isEmpty()
                throws com.esri.sde.sdk.geom.SeGeometryException
Returns t (TRUE) if the geometry is empty; otherwise returns f (FALSE).

Specified by:
isEmpty in interface Geometry
Specified by:
isEmpty in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

numPoints

public int numPoints()
              throws com.esri.sde.sdk.geom.SeGeometryException
Returns the number of points in a geometry.

Specified by:
numPoints in interface Geometry
Specified by:
numPoints in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

envelope

public Geometry envelope()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Returns the bounding box of a geometry object as a polygon.

Specified by:
envelope in interface Geometry
Specified by:
envelope in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

dimension

public int dimension()
              throws com.esri.sde.sdk.geom.SeGeometryException
Returns the dimension of a geometry object.

Specified by:
dimension in interface Geometry
Specified by:
dimension in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

is3D

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

Specified by:
is3D in interface Geometry
Specified by:
is3D in class SeGeometry

isMeasured

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

Specified by:
isMeasured in interface Geometry
Specified by:
isMeasured in class SeGeometry

geometryType

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

Specified by:
geometryType in interface Geometry
Specified by:
geometryType in class SeGeometry

convexhull

public Geometry convexhull()
                    throws com.esri.sde.sdk.geom.SeGeometryException
Returns the convex hull of a geometry object.

Specified by:
convexhull in interface Geometry
Specified by:
convexhull in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

locateAlong

public Geometry locateAlong(double measure)
                     throws com.esri.sde.sdk.geom.SeGeometryException
Locatealong takes a geometry object and a measure to return as a multipoint the set of points found at the measure.

Specified by:
locateAlong in interface Geometry
Overrides:
locateAlong in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

locateBetween

public Geometry locateBetween(double measure1,
                              double measure2)
                       throws com.esri.sde.sdk.geom.SeGeometryException
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.

Specified by:
locateBetween in interface Geometry
Overrides:
locateBetween in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException