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

obrienj
16333
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 ♦
69.5k806311087
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

By RSS:

Answers

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:

×71

question asked: 09 Jul '12, 23:16

question was seen: 3,350 times

last updated: 10 Jul '12, 07:42

powered by OSQA