Mapweaver

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
English Italiano Русский

Contents

Introduction

Mapweaver is the successor of Mapgen.pl. Mapgen has evolved too much and became a mess to maintain. So some new concepts were followed when porting mapgen to mapweaver:

Program is still under development... Looking forward to bug reports and wishes.

Outstanding features

Sample files

Some samples can be found on the Mapgen.pl page since it basically is the same rendering machine. New samples here:

Manual and Help

Mapweaver/Manual

There is not yet a complete manual. But most parts of the mapgen manual can be used. For differences see output of command line option -help or here: Mapweaver/Help.

Installation

On Ubuntu:

1. Make folder:

mkdir mapweaver
cd mapweaver/

2. Checkout subversion repository

svn co http://svn.openstreetmap.org/applications/utils/gary68

3a. install dependencies

sudo apt-get install libcompress-bzip2-perl libgd-graph3d-perl libmath-polygon-perl

3b. if desired, osmosis for OSM related tasks, inkscape for dealing with svg files

sudo apt-get install osmosis inkscape

3c. install Geo::Proj4 and its dependencies:

sudo apt-get install proj libproj-dev
sudo cpan Geo::Proj4
sudo cpan DBI

NOTE: If proj is not available on your Debian version, you might try first downloading from http://svn.osgeo.org/metacrs/proj/trunk/proj/src/ the files projects.h and proj_api.h then copy these files with admin privileges to /usr/include/

3d. latex packages for pdf export

sudo apt-get install texlive-latex-base texlive-latex-bin

4. unpack icons.zip:

mkdir icons
cd icons
unzip ../icons.zip
cd ..

5. create mwconfig.ini and populate mwStandardRules.txt (or copy them :) ).

6. launch the program with

perl mw.pl -in=yourfile.osm

Updating

cd mapweaver/
svn up http://svn.openstreetmap.org/applications/utils/gary68 ./

Files

ini file

# config file 
out=gerhard.svg
scaleset=25000
pdf=1

Rule file

The rule file format completely changed from Mapgen.

Empty lines and lines beginning with "comment" or "#" are allowed.

Some examples are on this page


Icons

Icon sets can be obtained here:

Whishes / Todos

Recently implemented

Mapweaver/Older Versions

Source

If you checkout the svn, you shouldn't need to access the repository.

Personal tools
Namespaces
Variants
Actions
site
Toolbox