[Jts-topo-suite-user] Segment from LineString

2014-07-01 Thread André Salvati
Hi, 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? Thanks. -- Open

Re: [Jts-topo-suite-user] Segment from LineString

2014-07-01 Thread André Salvati
Ok, lineString.getLength() solves 2). Remains 1). 2014-07-01 14:00 GMT-03:00 André Salvati andre.f.salv...@gmail.com: Hi, 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

Re: [Jts-topo-suite-user] Segment from LineString

2014-07-01 Thread BG
1) if you have the given points, just loop through the coordinates of the linestring and save the points between your start and end point in a new Coordinate[ ] - create a new linestring and done. 2) its just an array - so it is .length have a nice day. On 01.07.2014 19:52, André Salvati