hi,
just published the first version of mapgen.pl
- perl based
- osm file input
- style file
- svg output
- optional PNG output (requires inkscape)
- optional PDF output (requires inkscape)
osm.wiki/Mapgen.pl
- source
- examples
- feedback
nothing too special - still some things to implement...
cheers
Gary68
Discussion
Comment from wieland on 2 February 2010 at 14:40
Sounds interesting, I will have a look. :-)
Comment from efred on 2 February 2010 at 17:42
Hi Gary68,
I would like to try this script. But I get the following error:
Can't locate OSM/osm.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at mapgen.pl line 36.
BEGIN failed--compilation aborted at mapgen.pl line 36.
Comment from wieland on 3 February 2010 at 07:46
You should download osm.pm too and put it into a directory named OSM which should be where mapgen.pl is.
Comment from goldfndr on 3 February 2010 at 17:34
I noticed in the SVG that a piece of text is continually appearing after each of the "Y" coordinates. On the wikipage's SVG file (mapgen004Hovheim.svg), it's ".21283373252". This also occurs in the Osmrender.pl SVG, "Hof20BETA.svg", with ".029810502788". Er, ".02981050278765" rounded for decimal places.
Should it exist? The SVG files would be smaller without it.