[Potlatch-dev] [OpenStreetMap] #3701: Cannot import lake multipolygon as vector background layer
OpenStreetMap
trac at openstreetmap.org
Mon Oct 3 17:27:46 BST 2011
#3701: Cannot import lake multipolygon as vector background layer
-------------------------------------+--------------------------------------
Reporter: bsupnik@… | Owner: potlatch-dev@…
Type: defect | Status: closed
Priority: minor | Milestone:
Component: potlatch2 | Version: 2.0
Resolution: fixed | Keywords: vector import
-------------------------------------+--------------------------------------
Changes (by Richard):
* status: new => closed
* resolution: => fixed
Comment:
The shapefile worksforme!
For the "OSM" file: that's not actually an .osm file, it's an .osc
(OsmChange) file. Whereas .osm files have an <osm/> root element and
<node>, <way> and <relation> children, .osc files have a different
structure with <create/>, <modify/> and <delete/> children.
.osc is intended for distributing changes to existing data and is
therefore not really suitable for bringing data into an empty P2
background layer. However, I've added a small workaround -
https://github.com/systemed/potlatch2/commit/ffe3474fc2f3426b5a8f9c909ea5632b93295120
- which will parse the <create/> section ''only'' of such files. This
should enable you to load files like that.
Bear in mind that there's currently no support for "pulling through"
relations, so you'll need to reconstitute the multipolygon relation when
you do so. On the other hand, P2 now has a lovely easy "create
multipolygon" button!
--
Ticket URL: <https://trac.openstreetmap.org/ticket/3701#comment:1>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Potlatch-dev
mailing list