Hi Michael,
yes this really helped a lot!!! But the api doc isn`t what informative
for me! So maybe you or somebody can help me out!
If i have the following examle:
WKTReader reader = new WKTReader();
LineString line = (LineString) reader.read(
"LINESTRING(0 0, 5 5, 0 0)");
i got the length of the complet line with
LengthIndexedLine loc = new LengthIndexedLine(line);
*System.out.println(loc.getEndIndex());
*and if i want to now the point with distancelentgh 10.0 *from the
startpoint 0,0
*i used => System.out.println(loc2.extractPoint(10.0));
So can i count that the result is valid? Do you have examples using this
class?
And if i have a collection of linestring representing the movementpath
should i combine the linestrings to a "big" one and then use this
algorithm or is there an more easier way?
I also wanted to ask you what classes do you use for computing shourtes
paths? or what classes do you use for buldig a route graph from linestrings!
Best regards,
Martin
Michael Bedward schrieb:
> Hi Martin,
>
>
>> For example i have a linestring ( 0 0 , 5 5 , .... )
>>
>> so i calculate the linear function between the first two points => (0,0) and
>> (5,5) that would be f(x) = x
>>
>> and now i have the information that the moving object can move 2 meters per
>> step how can i get the next point?
>>
>
> Yes - exactly.
>
>
>> And does geotools have such operations implemented? If so i could save much
>> implementation time!
>>
>
> The classes in the JTS package linearref are your friends:
> http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/linearref/package-summary.html
>
> Hope this helps.
>
> Michael
>
>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users