Re: [Jts-topo-suite-user] Get coordinates along road
Brought to you by:
dr_jts
From: Gustavo L. <gus...@gm...> - 2010-09-01 08:44:57
|
Hi martin, using the densify method i obtain the same coordinates. I attached the debug process files and send to your private e-mail. I would be very grateful if you could evaluate this files. Thanks a lot! On Tue, Aug 31, 2010 at 9:26 AM, Gustavo Lacerda <gus...@gm...>wrote: > Hi Martin, > i can get this coordinates from road 5 > road5 > (-43.9712548, -19.8633977, NaN) > (-43.9712977, -19.8632564, NaN) > (-43.9713352, -19.8624769, NaN) > (-43.9713567, -19.8617655, NaN) > (-43.9713889, -19.8610743, NaN) > (-43.9714157, -19.8606808, NaN) > (-43.9714211, -19.8605799, NaN) > (-43.9714482, -19.8594831, NaN) > (-43.9714908, -19.8583851, NaN) > (-43.971523, -19.8573104, NaN) > (-43.9721935, -19.8561954, NaN) > (-43.9729199, -19.854985, NaN) > > So this road is very long and i need to know if there is a way in JTS api > to get more points than those mentioned above. > Thanks a lot. > > On Mon, Aug 30, 2010 at 12:23 PM, Gustavo Lacerda < > gus...@gm...> wrote: > >> Hi all, >> I'm using the code below to read shape file and populate a map of >> coordinates of some Roads >> *Road road = roadLoader.next();* >> *Geometry roadGeom = roadGeography.getGeometry(road);* >> *System.out.println(road.getIdentifier());* >> *for (Coordinate c:roadGeom.getCoordinates()){* >> * System.out.println(c);* >> * coordnates.put(c, null);* >> *}* >> >> >> But this code does not get all the coordinates that i need . I want to >> know if there is a way using JTS to obtain all coordinates(x,y) along the >> road segment? Someone can give me a code example? >> >> -- >> Atenciosamente, >> >> Gustavo Lacerda >> 31-88047420 >> >> > > > -- > Atenciosamente, > > Gustavo Lacerda > 31-88047420 > > -- Atenciosamente, Gustavo Lacerda 31-88047420 |