Opened 9 years ago

Closed 9 years ago

#3701 closed defect (fixed)

Cannot import lake multipolygon as vector background layer

Reported by: bsupnik@… Owned by: potlatch-dev@…
Priority: minor Milestone:
Component: potlatch2 Version: 2.0
Keywords: vector import Cc:


Apologies if I missed something obvious, but from this view:

I have tried to import a multipolygon lake using the following URLs: OSM format: SHP format:

Expected result: lake layer name would appear on the list, then I would see some kind of vector outline of the lake in the map window, ready to be 'brought forward' into OSM.

Actual results:

  • the shapefile seems to never come up as a layer.
  • the OSM file does appear as a layer, but even when the layer is checked, I do not see any sign of the lake in the map.

Manual verification of the osm and shp files in JOSM and qgis indicate that the lake is a well formed multipolygon in the correct location.

Any hints to a work-around (or a clue) are much appreciated!

Change History (1)

comment:1 Changed 9 years ago by Richard

Resolution: fixed
Status: newclosed

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 - - 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!

Note: See TracTickets for help on using tickets.