Mapweaver/Manual/Additional data

From OpenStreetMap Wiki
Jump to navigation Jump to search

GPX file overlay

If you want to show the contents of a GPX file in your map then do this:

-gpx=town.gpx

The program will then draw big dots for the waypoints, smaller and connected dots for the routes and small dots for the tracks.

Optionally you can alter color and size:

-gpxcolor=green
-gpxsize=15 (default is 10)

Grid

A grid can be laid over the map. Just specify the number of squares you want in longitude direction. The other dimension is automatic. Of course you can specify the grid color. The grid squares are labeled numerically and alphabetically.

-grid=<integer> (number parts for grid, 0=no grid, DEFAULT=0) 
-gridcolor=TEXT (color for grid lines and labels (DEFAULT=black)

Page numbers

Page numbers can be added in two ways:

-pagenumbers=size,color,number

or

-pagenumbers=size,color,number,left,bottom,right,top

The first option will only draw the page number of this map in the lower right corner. The second option will additionally draw connection page numbers to all borders of the map.

Street directory

mapweaver can even create a street directory. It will do so including the grid squares where the street is located if the grid is turned on. Output is an unformatted street list to be further processed. The grid squares are separated by a tab. File name is name_streets.txt.

-dir (create street directory in separate file. if grid is enabled, grid squares will be added) 

Poi and place list

You can print a poi and place list like the street directory. Grid option applies as well.

-poi (create list of pois) 
Delkenheim	C5 
Diedenbergen	F4 
Eddersheim	G5 
Edeka Kundenparkplatz	G7 
Falkenberg (Keramag)	E7 
Flörsheim	F6 
Geldautomat	C1 


Street and POI directory in PDF

You can create a formatted street and POI directory in PDF format. To be able to do so you need some programs installed (see installation):

  • latex
  • dvips
  • ps2pdf

Also necessary is to also specify the options to create street and POI directories with -dir and/or -poi and a grid created by -grid=x.

-dirpdf (creates directory of streets and POIs if according options for generation are set) 
-dircolnum=INTEGER (number of columns for PDF directory of streets and POIs; DEFAULT=3) 
-dirtitle=TEXT (title for PDF directory of streets and POIs; DEFAULT="mapweaver map") 

Excludes

By default each way or node with a rule will appear in the directories. This default behaviour can be altered in the ini file

direxcludedefault=yes

In addition this default behaviour can be switched on and off for each object in the rule/style file.

direxclude=yes

Way name substitution

If way labels are too long they will not get rendered in the map. If you want such ways to be labeled with numbers and an element in the map explaining the numbers then add:

-wns=1

Number from 1..4 represent the location where the way legend is placed.

Additionally you could specify following parameters in ini file:

wnssize=20
wnscolor=blue
wnsbgcolor=grey

If you specify wns=5 this legend will be placed in a separate file. File will also be converted to other formats if specified.

There is also a parameter to force Mapweaver to substitute a way name only once:

wnsunique=1 (also from command line -wnsunique)