Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Cannot import lake multipolygon as vector background layer #3701

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: bsupnik[at]xsquawkbox.net
[Submitted to the original trac issue database at 11.06pm, Wednesday, 20th April 2011]

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

http://www.openstreetmap.org/edit?lat=41.3471&lon=-72.7728&zoom=14

I have tried to import a multipolygon lake using the following URLs:
OSM format:
http://dev.x-plane.com/download/lake.osm
SHP format:
http://dev.x-plane.com/download/lake.shp

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!

@openstreetmap-trac
Copy link
Author

Author: Richard
[Added to the original trac issue at 4.27pm, Monday, 3rd October 2011]

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 root element and , and children, .osc files have a different structure with , and 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 - systemed/potlatch2@ffe3474 - which will parse the 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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant