LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help displaying.osm in labview

Hello everybody,

I have just startet a DIY drone project and want to display a map offline in my labview.vi . I have downloaded  a map section from openstreetmap as a .osm file via. http://extract.bbbike.org/. Is there any way to display this file type in labview. Or any other af the file types avalible from the site?

I hope you can help me.

-Mitch 

0 Kudos
Message 1 of 6
(4,864 Views)

Hi Mitch,

 

when asking for "osm xml" you get text files in XML encoding scheme. You can read them with your favorite text editor!

 

Then you need to parse them to extract objects with their positions (lat/lon)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(4,849 Views)

Thank you for your quick help. But unfortunately i understand nothing of it. I have never worked with xml files before and i am also still kind of new to LabView. If someone could help me with an example of how i can display an xml file in labview i would be very greatful. 

 

Alternatively i have downloaded the map section as tiles including a .JSON file. would it be more easy to display them in labview?

0 Kudos
Message 3 of 6
(4,830 Views)

Hi MrMitch.

 

 

I don't have any experience with the .osm fileformat, so if you want to use that map, I would look more into what GerdW suggests.

However, another option is to integrate Google Maps into LabVIEW. Have a look at these two examples:

 

Community Example: Google Maps in LabVIEW

 

Forum: Google map API

 

 

I hope you can use this.

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 4 of 6
(4,812 Views)

BTW: Which DIY drone project are you working on? Smiley Happy

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 5 of 6
(4,806 Views)

Hello Alex,

I am working on my own project. I want to remote control a RC Plane with an arduino and an APC220 wireless communication antenna. The plane has a GPS-module and i want to be able to follow it on a map in labview and later i want to implement an autopilot so i can send waypoints to the plane. Right now i only can steer the plane via. a joystick through labview 🙂

Best Regards Mitch

0 Kudos
Message 6 of 6
(4,791 Views)