Hi Michael, hmm i have never heard something about linear interpolation before! So i googeld and maybe this is exactly what i need! But the examples weren`t much informativ! So do you have an example or a webpagelink about that topic? You mean for any two linestring coordinates i should calculate a linear function ? 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? And does geotools have such operations implemented? If so i could save much implementation time! And my solution would be two vectors v1= 0,0 v2=5,5 conection vector v3 = 5-0 , 5-0 = v3(5,5) it is also the direction vector! of the movement! So have a origin point a directionvector and a distance d => trim the directionvector v3 to the length 1 (normalize it) : formular : (1/ (length of v3)) * vector = v4 (= normalized vector) searched point is then : v1+ distance * v4 this would be my solution ! Best regards; Martin Michael Bedward schrieb: > Hi Martin, > > Yes, all that's clear. What I don't understand is why you need any > support classes to do such simple calculations ? What you describe > just looks like basic arithmetic rather than complex linear algebra - > that's why I think I'm probably still missing something (?) > > Originally I had the idea that your app would involve animated objects > moving along line features (e.g. roads, routes) which may be wiggly. > In that case you could easily use the coordinates of the line string, > plus simple linear interpolation, to update the position of the moving > object at each time step. > > Sorry if I'm missing something obvious. Perhaps someone else here can > be more help :-) > > 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 > > ------------------------------------------------------------------------------ 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
