I have planet.osm.pbf, a poly file for the USA, and a poly file for Canada.

Is it possible to get both countries into one output file with one pass of osmosis?

Or can the poly files be merged? If so, what d I have to look out for?

Regards, Jim

asked 09 Jul '12, 23:16

obrienj's gravatar image

accept rate: 0%

The easiest way of merging the poly files is to convert them to .osm format using poly2osm.pl from http://svn.openstreetmap.org/applications/utils/osm-extract/polygons, then combine them in JOSM, and convert them back with osm2poly.pl. However, if you are not too picky about the US-Mexico boundary, you could also use JOSM to quickly draw a polygon around the US and Canada by hand, save that, and convert to .poly.

Regarding your Osmosis question, yes it is possible, and examples for that are on the Wiki.

permanent link

answered 10 Jul '12, 07:42

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 24%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Jul '12, 23:16

question was seen: 3,555 times

last updated: 10 Jul '12, 07:42

powered by OSQA