Class OGCLineString

Direct Known Subclasses:
OGCLinearRing

public class OGCLineString extends OGCCurve
  • Field Details

  • Constructor Details

  • Method Details

    • numPoints

      public int numPoints()
      The number of Points in this LineString.
    • asText

      public String asText()
      Overrides:
      asText in class OGCGeometry
    • asBinary

      public ByteBuffer asBinary()
      Overrides:
      asBinary in class OGCGeometry
    • pointN

      public OGCPoint pointN(int n)
      Returns the specified Point N in this LineString.
      Parameters:
      n - The 0 based index of the Point.
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in class OGCCurve
    • length

      public double length()
      Specified by:
      length in class OGCCurve
    • startPoint

      public OGCPoint startPoint()
      Specified by:
      startPoint in class OGCCurve
    • endPoint

      public OGCPoint endPoint()
      Specified by:
      endPoint in class OGCCurve
    • geometryType

      public String geometryType()
      Specified by:
      geometryType in class OGCGeometry
    • estimateMemorySize

      public long estimateMemorySize()
      Description copied from class: OGCGeometry
      Returns an estimate of this object size in bytes.

      This estimate doesn't include the size of the SpatialReference object because instances of SpatialReference are expected to be shared among geometry objects.

      Specified by:
      estimateMemorySize in class OGCGeometry
      Returns:
      Returns an estimate of this object size in bytes.
    • locateAlong

      public OGCGeometry locateAlong(double mValue)
      Specified by:
      locateAlong in class OGCGeometry
    • locateBetween

      public OGCGeometry locateBetween(double mStart, double mEnd)
      Specified by:
      locateBetween in class OGCGeometry
    • getEsriGeometry

      public Geometry getEsriGeometry()
      Specified by:
      getEsriGeometry in class OGCGeometry
    • convertToMulti

      public OGCGeometry convertToMulti()
      Description copied from class: OGCGeometry
      Converts this Geometry to the OGCMulti* if it is not OGCMulti* or OGCGeometryCollection already.
      Specified by:
      convertToMulti in class OGCGeometry
      Returns:
      OGCMulti* or OGCGeometryCollection instance.
    • reduceFromMulti

      public OGCGeometry reduceFromMulti()
      Description copied from class: OGCGeometry
      For the geometry collection types, when it has 1 or 0 elements, converts a MultiPolygon to Polygon, MultiPoint to Point, MultiLineString to a LineString, and OGCConcretGeometryCollection to the reduced element it contains. If OGCConcretGeometryCollection is empty, returns self.
      Specified by:
      reduceFromMulti in class OGCGeometry
      Returns:
      A reduced geometry or this.