Osm2mp

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

Contents

Osm2mp.pl

Osm2mp.pl is a perl program by Liosha to convert from OSM format to polish format. It supports routing.

See the forum thread at http://forum.openstreetmap.org/viewtopic.php?id=1162 for more information and a download link. The source code: http://code.google.com/p/osm2mp/.

svn co http://osm2mp.googlecode.com/svn/trunk/ osm2mp-read-only

Debian/Ubuntu

You will need the following dependencies:

sudo apt-get install libtemplate-perl libtext-unidecode-perl libyaml-perl

Gentoo

emerge dev-perl/Inline dev-perl/Template-Toolkit dev-perl/Text-Unidecode app-portage/g-cpan

and

g-cpan -i Math::Geometry::Planar::GPC::Polygon Math::Polygon Math::Polygon::Tree

Fedora

yum install perl-Template-Toolkit

FreeBSD

make -C /usr/ports/converters/osm2mp install clean

or

portinstall osm2mp

ArchLinux

Install the following packages (from official repo or build from AUR):

perl-template-toolkit
perl-text-unidecode
perl-math-polygon
perl-math-geometry-planar-gpc-polygon
perl-math-polygon-tree
perl-list-moreutils
perl-data-dump

OpenSUSE

Open terminal app and enter following commands:

su
zypper in perl-YAML
perl -MCPAN -e "install List::MoreUtils"
perl -MCPAN -e "install Text::Unidecode"
perl -MCPAN -e "install Data::Dump"
perl -MCPAN -e "install Math::Polygon"
perl -MCPAN -e "install Inline::MakeMaker"
perl -MCPAN -e "install Math::Geometry::Planar::GPC::Polygon"
perl -MCPAN -e "install Math::Polygon::Tree"
perl -MCPAN -e "install Tree::R"

Configuration

The file poly.cfg contains default sets of RouteParams per highway type. See polish format for information on the RouteParams field.

Osminog

Osminog is an OSM to .MP (Polish format) converter by User:Asdert.

Personal tools
Namespaces
Variants
Actions
site
Toolbox