ms2vmapdb -- working with vector map database
ms2vmapdb (-h|--help|--pod)
ms2vmapdb <action> (-h|--help)
ms2vmapdb <action> [<action arguments and options>]
Show help message.
Show help message as POD template.
ms2vmapdb create -- create vmap2 database
ms2vmapdb delete -- delete vmap2 database
ms2vmapdb rebuild_gh -- rebuild geohashes for vmap2 database
ms2vmapdb dump_gh -- dump geohashes for vmap2 database
ms2vmapdb add_obj -- add new object to vmap2 database, print id
ms2vmapdb types -- print all object types in vmap2 database
ms2vmapdb bbox -- print bounding box of the map (using geohash data)
ms2vmapdb update_labels -- update labels
ms2vmapdb crop_nom -- crop to nomenclature map page
ms2vmapdb crop_rect -- crop to rectangular range
ms2vmapdb import -- import objects to vmap2 database
ms2vmapdb export -- export vector map to a different format
ms2vmapdb fig_lib -- make fig library using typeinfo file
ms2vmap create <dbname>
Create vmap2 database. <dbname> is a database name with or without .vmap2db extension.
ms2vmap delete <dbname>
Delete vmap2 database. <dbname> is a database name with or without .vmap2db extension.
ms2vmap rebuild_gh <dbname>
ms2vmap dump_gh <dbname>
ms2vmap add_obj <dbname> <object_type> <coordinates>
Specify object name.
Specify object comment.
Specify object angle.
Specify object scale.
Specify object alignment (NW,N,NE,E,SE,S,SW,C).
Specify ref_type.
Specify ref_pt.
ms2vmap types <dbname>
ms2vmap bbox <dbname>
ms2vmap update_labels <dbname> -t <typeinfo file>
File with type information. Default: /usr/share/mapsoft2/types.cfg
Define variables for type information file.
ms2vmap crop_nom <dbname> <nom name>
Crop labels. Values: 0 or 1, default 0.
ms2vmap crop_rect <dbname> <rectangle>
Crop labels. Values: 0 or 1, default 0.
ms2vmap import <file1> <file2> ... -o <dbname> -t <type info file>
Read map objects in different formats and add to a database.
Output file.
File with type information. Default: /usr/share/mapsoft2/types.cfg
Define variables for type information file.
Be quiet, do not print types of skipped objects. Default: 0. This works when reading/writing MP, VMAP, writing FIG.
Skip objects which are not defined in typeinfo file. Default: 0. This works when reading/writing MP, VMAP.
select type for GPX waypoint import/export
select type for GPX track import/export
prefix for waypoint names (names w/o prefix are skipped). Default: "="
When reading VMAP file, set type number for labels which are not defined in typeinfo file. Use -1 to skip unknown labels (default). If skip_unknown is set then labels are skipped with unknown objects.
Override encoding for reading MP-files (does not change CodePage setting)
minimum depth of map object (default 40)
minimum depth of map object (default 200)
Encoding for reading/writing fig files (default: KOI8-R). When reading utf8 files with a special comment (made by xfig>3.2.9) this option is ignored.
Configuration file for OSM XML -> VMAP2 conversion
Put OSM IDs in object comments
Put OSM tags in object comments
ms2vmap export <dbname> -o <out file> [<options>]
Supported formats: vmap2, vmap2db, vmap, mp, fig
Output file.
File with type information. Default: /usr/share/mapsoft2/types.cfg
Define variables for type information file.
Be quiet, do not print types of skipped objects. Default: 0. This works when reading/writing MP, VMAP, writing FIG.
Skip objects which are not defined in typeinfo file. Default: 0. This works when reading/writing MP, VMAP.
select type for GPX waypoint import/export
select type for GPX track import/export
prefix for waypoint names (names w/o prefix are skipped). Default: "="
Crop map to nomenclature region.
Crop map to a rectangle.
By default crop_* commands are not applied to labels. This option can change it. Values: 0 or 1, default: 0.
Update labels (0|1): find labels for each object, add missing labels, remove labels without objects, update label type, name, and reference. Values: 0 or 1, default: 0.
When updating labels, get names from labels, not from objects. Useful for updating map from a source (e.g. gpx) where names are missing.Values: 0 or 1, default: 0.
Keep old labels. Values: 0 or 1, default: 0.
Replace objects with a given tag.
Replace objects with a given type.
Replace objects with all types which exist in input files. Values: 0 or 1, default: 0.
Fix rounding errors using information from the output file. This should be used when editing map in fig format and then returning changes to other format. Then untached points are detected and rounding errors fixed.
accuracy for fixing rounding errors (m). Fig accuracy is 1/450 cm, 2.2 m for 1:100'000 maps. Default: 5
join similar line objects (same type, name, comment, tags)
Max distance for joining lines in meters. Default 5.
Max angle for joining lines in degrees. Default 45.
Reduce number of points in lines and polygons.
Accuracy for point filtering in meters. Default: 10
override MP ID
override MP Name
set mp data levels (comma-separated integers), default: "24,22,20,18,17,15".
Override encoding for writing MP-files (does not change CodePage setting)
minimum depth of map object (default 40)
minimum depth of map object (default 200)
Encoding for reading/writing fig files (default: KOI8-R). When reading utf8 files with a special comment (made by xfig>3.2.9) this option is ignored.
ms2vmap fig_lib [<options>]
Output file.
File with type information. Default: /usr/share/mapsoft2/types.cfg
Define variables for type information file.
Vladislav Zavjalov <slazav@altlinux.org>