PDA

View Full Version : Maperative: Use OSM data to render your own map.



photohiker
11th June 2011, 08:46 AM
Recently came across this.

http://maperitive.net/

Maperitive is a FREE desktop application for drawing maps based on OpenStreetMap and GPS data. You can define what gets on the map and how it is painted. You can also export these maps into bitmaps and SVG files and print them.

Features

text-based stylesheets
generates relief contours
hillshading and slopeshading
elevation coloring
GPX support
OSM web maps browsing
export to PNG, JPG & others
OziExplorer and Google Earth support
export to SVG (Inkscape, Adobe Illustrator)
web tiles generator
data query language
automatic scripting support


Useful if you want to tinker with the map output for OziExplorer and Aventura. Consumes a lot of disk space and time :)

Useful getting started tutorial here: http://themapisnottheterritory.org/content/rendering-osm-maps-maperitive

Michael

photohiker
11th June 2011, 12:40 PM
Just an addendum...

When exporting to bitmap for Australia, the software writes a negative value into the calibration locations in the Ozi .map file. I don't know if that is because of something I have done or an application error, but just be aware. I only found this when I loaded the file into Land to export as RMAP for the Sportiva - it was all over the place (inverted and mirrored) Ozi didn't seem to have a problem with it on the other hand...

So if the map location is screwed up in Land, check your .map file against another file that works! I just opened it up and removed the negative signs and its all good.

Other than that, the program is pretty clean and effective. I was able to define an area I wanted mapping for, download the OSM data, throw in some contours and hill shading, load a route, and then export the whole shebang into a usable file for the Sportiva. All from within the Maperative Program.

Michael

photohiker
22nd April 2012, 11:45 AM
Original File contents:


OziExplorer Map Data File Version 2.2
output.png (Maperitive)
output.png
1 ,Map Code,
WGS 84,WGS 84, 0.0000, 0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Mercator,PolyCal,No,AutoCalOnly,No,BSBU seWPX,No
Point01,xy, 0, 0,in, deg, -35, -1.25892387772438,S, 138, 21.1294655819705,E, grid, , , ,N
Point02,xy, 6863, 7984,in, deg, -35, -34.8107982329194,S, 138, 56.4676766415408,E, grid, , , ,N
Point03,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point04,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point05,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point06,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point07,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point08,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point09,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point10,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point11,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point12,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point13,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point14,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point15,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point16,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point17,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point18,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point19,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point20,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point21,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point22,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point23,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point24,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point25,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point26,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point27,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point28,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point29,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point30,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Projection Setup,,,,,,,,,,
Map Feature = MF ; Map Comment = MC These follow if they exist
Track File = TF These follow if they exist
Moving Map Parameters = MM? These follow if they exist
MM0,Yes
MMPNUM,4
MMPXY,1,0,0
MMPXY,2,6863,0
MMPXY,3,6863,7984
MMPXY,4,0,7984
MMPLL,1, 138.3521577597, -35.0209820646287
MMPLL,2, 138.941127944026, -35.0209820646287
MMPLL,3, 138.941127944026, -35.5801799705487
MMPLL,4, 138.3521577597, -35.5801799705487
MM1B,2.321456
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,6863,7984


Fixed File Contents:


OziExplorer Map Data File Version 2.2
output.png (Maperitive)
output.png
1 ,Map Code,
WGS 84,WGS 84, 0.0000, 0.0000,WGS 84
Reserved 1
Reserved 2
Magnetic Variation,,,E
Map Projection,Mercator,PolyCal,No,AutoCalOnly,No,BSBU seWPX,No
Point01,xy, 0, 0,in, deg, 35, 1.25892387772438,S, 138, 21.1294655819705,E, grid, , , ,N
Point02,xy, 6863, 7984,in, deg, 35, 34.8107982329194,S, 138, 56.4676766415408,E, grid, , , ,N
Point03,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point04,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point05,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point06,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point07,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point08,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point09,xy, , ,in, deg, , ,N, , ,E, grid, , , ,N
Point10,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point11,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point12,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point13,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point14,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point15,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point16,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point17,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point18,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point19,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point20,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point21,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point22,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point23,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point24,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point25,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point26,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point27,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point28,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point29,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Point30,xy, , ,in, deg, , ,N, , ,W, grid, , , ,N
Projection Setup,,,,,,,,,,
Map Feature = MF ; Map Comment = MC These follow if they exist
Track File = TF These follow if they exist
Moving Map Parameters = MM? These follow if they exist
MM0,Yes
MMPNUM,4
MMPXY,1,0,0
MMPXY,2,6863,0
MMPXY,3,6863,7984
MMPXY,4,0,7984
MMPLL,1, 138.3521577597, 35.0209820646287
MMPLL,2, 138.941127944026, 35.0209820646287
MMPLL,3, 138.941127944026, 35.5801799705487
MMPLL,4, 138.3521577597, 35.5801799705487
MM1B,2.321456
MOP,Map Open Position,0,0
IWH,Map Image Width/Height,6863,7984

And, if you know diff:

yada$ diff original.map fixed.map
10,11c10,11
< Point01,xy, 0, 0,in, deg, -35, -1.25892387772438,S, 138, 21.1294655819705,E, grid, , , ,N
< Point02,xy, 6863, 7984,in, deg, -35, -34.8107982329194,S, 138, 56.4676766415408,E, grid, , , ,N
---
> Point01,xy, 0, 0,in, deg, 35, 1.25892387772438,S, 138, 21.1294655819705,E, grid, , , ,N
> Point02,xy, 6863, 7984,in, deg, 35, 34.8107982329194,S, 138, 56.4676766415408,E, grid, , , ,N
50,53c50,53
< MMPLL,1, 138.3521577597, -35.0209820646287
< MMPLL,2, 138.941127944026, -35.0209820646287
< MMPLL,3, 138.941127944026, -35.5801799705487
< MMPLL,4, 138.3521577597, -35.5801799705487
---
> MMPLL,1, 138.3521577597, 35.0209820646287
> MMPLL,2, 138.941127944026, 35.0209820646287
> MMPLL,3, 138.941127944026, 35.5801799705487
> MMPLL,4, 138.3521577597, 35.5801799705487

So basically, any Latitude reference in the .map file showing a - sign has had that removed. Once I had the file open, I then opened the Heysen trail .gpx on top of it, and the registration is pretty much exact:

http://s17.postimage.org/nbzji314v/Mount_Magnificent.png

HTH!