com.esri.sde.sdk.geom
Class SeLinestring

java.lang.Object
  extended by com.esri.sde.sdk.geom.SeGeometry
      extended by com.esri.sde.sdk.geom.SeCurve
          extended by com.esri.sde.sdk.geom.SeLinestring
All Implemented Interfaces:
Curve, Geometry, Linestring, java.io.Serializable, java.lang.Cloneable

public class SeLinestring
extends SeCurve
implements Linestring, java.lang.Cloneable, java.io.Serializable

This class is a subclass of SeCurve with a linear interpolation between points, each consecutive pair of points defines a line segment.

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
SeLinestring()
           
SeLinestring(SeCoordRef cr, SePoint[] pts)
           
 
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.
 Point endPoint()
          Returns the last point of a linestring.
 Geometry envelope()
          Returns the bounding box of a geometry object as a polygon.
 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.
 double[] getMs()
           
 SePoint[] getXYs()
           
 double[] getZs()
           
 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 isClosed()
          Isclosed takes a linestring or multilinestring and returns t (TRUE) if it is closed; otherwise it 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 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.
 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.
 Geometry pointN(int n)
          Pointn takes a linestring and an integer index and returns a point that is the nth vertex in the linestring's path.
 Point startPoint()
          Returns the first point of a linestring.
 java.lang.String toString()
           
 
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, crosses, difference, disjoint, distance, envelopesIntersect, equal, intersect, intersection, isValid, overlap, srid, symmetricDiff, touch, union, within
 

Constructor Detail

SeLinestring

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

SeLinestring

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

startPoint

public Point startPoint()
                 throws com.esri.sde.sdk.geom.SeGeometryException
Returns the first point of a linestring.

Specified by:
startPoint in interface Curve
Specified by:
startPoint in class SeCurve
Throws:
com.esri.sde.sdk.geom.SeGeometryException

endPoint

public Point endPoint()
               throws com.esri.sde.sdk.geom.SeGeometryException
Returns the last point of a linestring.

Specified by:
endPoint in interface Curve
Specified by:
endPoint in class SeCurve
Throws:
com.esri.sde.sdk.geom.SeGeometryException

pointN

public Geometry pointN(int n)
                throws com.esri.sde.sdk.geom.SeGeometryException
Pointn takes a linestring and an integer index and returns a point that is the nth vertex in the linestring's path.

Specified by:
pointN in interface Linestring
Throws:
com.esri.sde.sdk.geom.SeGeometryException

length

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

Specified by:
length in interface Curve
Specified by:
length in class SeCurve
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).

Specified by:
isRing in interface Curve
Specified by:
isRing in class SeCurve
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 Curve
Specified by:
isClosed in class SeCurve
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
Specified by:
boundary in class SeGeometry
Throws:
com.esri.sde.sdk.geom.SeGeometryException

interior

public Geometry interior()
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

exterior

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

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

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()
Returns t (TRUE) if the geometry is empty; otherwise returns f (FALSE).

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

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 interface Linestring
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()
Returns the dimension of a geometry object.

Specified by:
dimension in interface Geometry
Specified by:
dimension 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

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

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

getXYs

public SePoint[] getXYs()

getMs

public double[] getMs()

getZs

public double[] getZs()

toString

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