com.esri.sde.sdk.geom
Class SeMultiLinestring

java.lang.Object
  extended by com.esri.sde.sdk.geom.SeGeometry
      extended by com.esri.sde.sdk.geom.SeGeometryCollection
          extended by com.esri.sde.sdk.geom.SeMultiCurve
              extended by com.esri.sde.sdk.geom.SeMultiLinestring
All Implemented Interfaces:
Geometry, GeometryCollection, MultiCurve, MultiLinestring, java.io.Serializable, java.lang.Cloneable

public class SeMultiLinestring
extends SeMultiCurve
implements MultiLinestring, java.lang.Cloneable, java.io.Serializable

This class represents a collection of geometric objects whose elements are SeLinestrings.

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
SeMultiLinestring()
           
SeMultiLinestring(SeCoordRef cr, SeLinestring[] ls)
           
 
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.
 int dimension()
          Returns the dimension of a geometry object.
 Geometry envelope()
          Returns the bounding box of a geometry object as a polygon.
 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.
 boolean is3D()
          Returns t (TRUE) if the geometry object has three-dimensional coordinates; otherwise, returns f (FALSE).
 boolean isClosed()
          Isclosed takes a linestring or multilinestring and returns t (TRUE) if it is closed; otherwise it returns f (FALSE).
 boolean isMeasured()
          Returns t (TRUE) if the geometry object has measures; otherwise, returns f (FALSE).
 boolean isRing()
          Isring takes a linestring and returns t (TRUE) if it is a ring (i.e., the linestring is closed and simple); otherwise it returns f (FALSE).
 boolean isSimple()
          Returns t (TRUE) if the geometry object is simple otherwise, it returns f (FALSE).
 double length()
          Returns the length of a linestring or multilinestring.
 int numGeometries()
          Numgeometries takes a collection and returns the number of geometries in the collection.
 java.lang.String toString()
           
 
Methods inherited from class com.esri.sde.sdk.geom.SeGeometryCollection
convexhull, exterior, interior, isEmpty, locateAlong, locateBetween, numPoints
 
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, 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, convexhull, crosses, difference, disjoint, distance, envelopesIntersect, equal, exterior, interior, intersect, intersection, isEmpty, isValid, locateAlong, locateBetween, numPoints, overlap, srid, symmetricDiff, touch, union, within
 

Constructor Detail

SeMultiLinestring

public SeMultiLinestring()
                  throws com.esri.sde.sdk.geom.SeGeometryException
Throws:
com.esri.sde.sdk.geom.SeGeometryException

SeMultiLinestring

public SeMultiLinestring(SeCoordRef cr,
                         SeLinestring[] ls)
                  throws com.esri.sde.sdk.geom.SeGeometryException
Throws:
com.esri.sde.sdk.geom.SeGeometryException
Method Detail

length

public double length()
              throws com.esri.sde.sdk.geom.SeGeometryException
Returns the length of a linestring or multilinestring.

Specified by:
length in interface MultiCurve
Specified by:
length in class SeMultiCurve
Throws:
com.esri.sde.sdk.geom.SeGeometryException

isRing

public boolean isRing()
               throws com.esri.sde.sdk.geom.SeGeometryException
Isring takes a linestring and returns t (TRUE) if it is a ring (i.e., the linestring is closed and simple); otherwise it returns f (FALSE).

Throws:
com.esri.sde.sdk.geom.SeGeometryException

isClosed

public boolean isClosed()
                 throws com.esri.sde.sdk.geom.SeGeometryException
Isclosed takes a linestring or multilinestring and returns t (TRUE) if it is closed; otherwise it returns f (FALSE).

Specified by:
isClosed in interface MultiCurve
Specified by:
isClosed in class SeMultiCurve
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
Overrides:
envelope in class SeGeometryCollection
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
Overrides:
buffer in class SeGeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

boundary

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

Specified by:
boundary in interface Geometry
Overrides:
boundary in class SeGeometryCollection
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
Overrides:
isSimple in class SeGeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

isMeasured

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

Specified by:
isMeasured in interface Geometry
Overrides:
isMeasured in class SeGeometryCollection

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
Overrides:
is3D in class SeGeometryCollection

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
Overrides:
geometryN in class SeGeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

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
Overrides:
numGeometries in class SeGeometryCollection
Throws:
com.esri.sde.sdk.geom.SeGeometryException

toString

public java.lang.String toString()
Overrides:
toString in class SeGeometry

dimension

public int dimension()
Returns the dimension of a geometry object.

Specified by:
dimension in interface Geometry
Overrides:
dimension in class SeGeometryCollection

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
Overrides:
geometryType in class SeGeometryCollection