Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Michael Bedward
Hello Pete, > I think you are referring to the "extractPoint" function. But the function > selects the Point between in a fraction between [0,1] No, it takes a distance in whatever units you are using for your geometries. For example, assuming a Cartesian space (and without checking line directi

Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Pete
Hi Michael, thanks for your reply. I think you are referring to the "extractPoint" function. But the function selects the Point between in a fraction between [0,1] and i like to have something like "find the lat/lon position with the distance of 50meter from the beginning" I belive i have to con

Re: [Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Michael Bedward
LengthIndexedLine is your friend... http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html Michael -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -

[Geotools-gt2-users] finding points in constant interval with the parameter IN meter

2009-02-24 Thread Pete
i'm trying to find the right function for a while now, but i am stuck i have a linestring in wgs84 and i want to find the coordinates along the linestring lets say every 50m... I know i can find the distance between two coordinates in meter (JTS.orthodromicDistance) but thats not the one i am