This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Offline MarbleWidget load osm shapefile

Tags: None
(comma "," separated)
cmaranto
Registered Member
Posts
2
Karma
0
Hey,

I have an application that requires an offline world map displaying coastlines. I found that osm provides the data for simple coastlines and features in a shapefile format:

http://openstreetmapdata.com/data/generalized-coastlines

How do I setup a MarbleWidget to use these shapefiles as the basis for my map?

Thanks
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
The easiest way might be to follow the approach taken in earth/srtm/srtm.dgml (the Atlas map theme): Convert the .shp files to .pn2 format using tools/shp2pn2 (there is a cmake switch to build the Marble tools) and reference them in the .dgml like srtm.dgml does.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], mesutakcan, Sogou [Bot]