Beispiel #1
0
  def subLine(self, start, end):
      """
      Extract a sub :class:`LineString <geoscript.geom.LineString>` using a start and end position.  Both positions are numbers between 0 and 1.  A new :class:`LineString <geoscript.geom.LineString>` is returned.

      *start* The start position between 0 and 1
      
      *end* The end position between 0 and 1

      """
      indexedLine = LengthIndexedLine(self)
      length = self.getLength()
      return LineString(indexedLine.extractLine(start * length, end * length))
Beispiel #2
0
    def subLine(self, start, end):
        """
      Extract a sub :class:`LineString <geoscript.geom.LineString>` using a start and end position.  Both positions are numbers between 0 and 1.  A new :class:`LineString <geoscript.geom.LineString>` is returned.

      *start* The start position between 0 and 1
      
      *end* The end position between 0 and 1

      """
        indexedLine = LengthIndexedLine(self)
        length = self.getLength()
        return LineString(indexedLine.extractLine(start * length,
                                                  end * length))