Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i'm would like to display GPS traces (not only a position) in realtime on OpenLayers. What is the most efficient way to do it? Sending KML or GPX files to browser or sending data via GeoJSON?

br d

share|improve this question
    
I think Sending data via GeoJSON will be useful.. –  Sunil Dec 5 '12 at 7:23
    
add comment

2 Answers

check out this map animation example SBB Network Simulator. I think that's pretty good for your needs. as @Sunil pointed out that GeoJSON would help you for huge datas. actually i dont think that geojson or kml make problem for you but browser restrictions. all your format which you havee mentioned that data interchangable format for mapping issues which are widely used by gis people.

enter image description here

i hope it helps you...

share|improve this answer
2  
GeoJSON requires less heavy parsing work from the browser than KML or GML. That can make a big difference. –  underdark Dec 6 '12 at 13:49
    
this is an important point which @underdark have mentioned if you dont want to wrestle with hard coding. –  Aragon Dec 6 '12 at 13:59
add comment

It really doesn't matter, the transport payload will be the same, rendering will have to suffer according with the method you will choose. I would go for straigh rendering via OL and if the trace becomes too complicated, I would simplify it (with Douglas–Peucker algorithm for example)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.