DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading and loading map from OpenStreetMap

Hello,

 

I am using DIADem 2012 Advance Edition .

 

I need to synchronize my gps graph( Latitude and longitude) on the map in offline mode.

I understood it is possible. i succeed to load my gps data on the map from the  gallery examples, the map there shows a little area, i need different area.

 

I read that i can download some file from OpenStreetMap (something on OSM file and PBF),

in my script i using : cacheType= "Cache"

                                   cachePath= the path of the folder in the exmples folder: mapCache

                                   useCache= true

 

 

***so the main question is : how do i downloading and loading bigger area from OpenStreetmap and what

script commands i need to use?

 

thanks and waiting for reply

                                   

0 Kudos
Message 1 of 12
(8,767 Views)

Hi OmerK,

You will need to be connected to the internet to download new maps from Open Street Maps. Load the map like you normally would, then zoom in or out using View.ActiveSheet.ActiveArea.DisplayObj.ZoomLevel. See the help here. When you load the map from a cache, you will only be able to see the zoom level that you selected; zooming in or out will show no image.

 

Let me know if this helps!

 

Regards,

 

Alexandra

National Instruments
Applications Engineer
0 Kudos
Message 2 of 12
(8,745 Views)

Hello Alexandra,

 

I meant that on the OpenStreetMap download like to all plant and for smaller areas in osm format. could i load this OSM file to diadem in offline mode?

 

link to file: http://planet.openstreetmap.org/

 

thanks ant waiting for reply

0 Kudos
Message 3 of 12
(8,736 Views)

Hi OzShimon,

 

It looks like the files for the planet images are .osm files. DIAdem loads the images in .png format. You would have to convert the data from OSM to PNG before DIAdem can load it. DIAdem also stores the map images in a specific file hierarchy, so you would have to follow that structure as well. It may be easiest to run the code online first and let DIAdem cache the necessary files, then switch to offline mode. 

 

Regards,

 

Alexandra

National Instruments
Applications Engineer
0 Kudos
Message 4 of 12
(8,721 Views)

Hi,

 

I need the planet map, i am working in offline mode.  how could i load the all planet map into DIADem map?

 

thanks

0 Kudos
Message 5 of 12
(8,612 Views)

Hi OzShimon,

 

As was mentioned you will still need to connect to the internet to download the required maps, and then you can put them on the machine in question. I may not quite understand what you mean by planet map, and loading it into the DIADem map. Could you explain a little more on what you are trying to accomplish?

 

Regards,

 

James W.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 12
(8,595 Views)
Hi, my program include map that show the plane trace . The plane could be at any point in the map and i want to be able to see tha plane position in all zoom levels.

I need to connet the internt and download the all planet map be moving the map in all zoom levels?


Thanks
0 Kudos
Message 7 of 12
(8,591 Views)

Hi,

 

Hi, my program include map that show the plane trace . The plane could be at any point in the map and i want to be able to see tha plane position in all zoom levels.  

 

I need internet connection and download the all planet map by moving on the map in all zoom levels?

 

Thanks

0 Kudos
Message 8 of 12
(8,582 Views)

Hi OzShimon,

 

As Alex+ra mentioned, you will need to have an internet connection to download the entire map. Once you do, you will also need to pre-cache each of the zoom levels. Having spoken with Alex+ra, it sounds like the idea of getting a map to a machine and getting all zoom levels available is not exactly the performance DIADem is going to offer if you do not have precached versions of the map at all zoom levels
.

 

Regards,

 

James W.
Applications Engineer
National Instruments
0 Kudos
Message 9 of 12
(8,555 Views)

Hi Oz,

 

I spoke with R&D again about this idea of downloading ALL map data from OpenStreetMaps.  It turns out that the OpenStreetMaps organization actively blocks individual requests for huge amounts of map information, among other reasons to protect their server up-time and responsiveness.

 

It is possible to download the raw data and create your own *.osm files, but the process is complicated:

http://wiki.openstreetmap.org/wiki/Creating_your_own_tiles

 

R&D estimates that a full download of all OpensStreetMaps data for all zoom levels to *.osm files would comprise 342 TB (342000 GB).

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 10 of 12
(8,546 Views)