Very simple implementation where "line" is a LineString.

Thanks Martin.

LengthIndexedLine l_i = new LengthIndexedLine(line);
Coordinate[] csSeg = l_i.extractLine(l_i.indexOf(cInicio), l_i.indexOf(cFim)).getCoordinates();

2014-07-02 14:47 GMT-03:00 Martin Davis <>:

On Tue, Jul 1, 2014 at 10:00 AM, André Salvati <> wrote:

1) is there a function to extract a segment (LineString) from a bigger LineString given 2 points inside the last one?

2) I also would like to get the size of the obtained segment. Is it possible?


Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
Jts-topo-suite-user mailing list