Need help on how to move a symbol over a map

المشرف العام

Administrator
طاقم الإدارة
I'm working in c++/qt and the c++ api qgis 2.8.2 In my application i load a map with a s57 file, this part works perfectly, now i need to make some plot representing different object like boat, plane, or anything else I need to categorized them so I create a list of type and for each of them I associate an icon with different shape and color, by exemple the first is a red circle, the second a green circle, etc .....

I receive from the LAN information that contains the coordinate (longitude and latitude ) of each object, from that point I need some information on how to make the symbol move

Here is the procedure that i want to code :


  • create the list of object
  • display the map
  • in a infinite loop : - read the lan por - catch the information - convert them into coordinate - display the object - check if esc key is pressed to exit
I need your experience on this point, if you want to move a symbol over a map what is the procedure you will follow



أكثر...
 
أعلى