[Tagging] Another multipolygon question

Dave Swarthout daveswarthout at gmail.com
Wed Oct 31 09:17:10 UTC 2018


I went ahead and did it the way I described in my last post. Clumsy but it
worked. I've been busy conflating coastline and riverbanks with the
boundary, throwing away thousands of unnecessary nodes in the process. I
like cleaning house like that but it's a ton of work that most people don't
do.

I like your ideas, Kevin, and will try them when I do my next big addition.
Removing the outer ring is a clever approach. I have separated all the
National Wildlife Refuge shapefiles into their own folders so it's no
biggie if I "wreck" one to isolate the inners. I selected my inners after
doing the Paste at Source Location step by searching in JOSM for "type:way
untagged new" as I described earlier but I did not unselect the nodes as
you recommend. Is that necessary and if so, why?

I tried another thing in my experimenting with those selections. There is a
button in the middle panel of Relation Editor that Selects objects. It's
the second from the bottom and the mouseover hint says:  "Select objects
for selected relation members".  In the leftmost panel I selected all the
inners from the shapefile relation in the shapefile layer (click on
topmost, [Shift] click on the last), clicked that button which moved them
to the right-hand pane and when I exited the Relation Editor those objects
appeared in JOSM's "Selection" panel. I cannot remember now if I was able
to copy and use them in my data layer but that button is interesting. Do
you or anyone else know how to use it?

Dave

PS: I live in fear of "losing the selection" LOL. Every time I tried to
transfer these blasted inners I lost the selection, which is why I resorted
to the JOSM search.



On Tue, Oct 30, 2018 at 7:47 PM Kevin Kenny <kevin.b.kenny at gmail.com> wrote:

> On Tue, Oct 30, 2018 at 7:54 AM Dave Swarthout <daveswarthout at gmail.com>
> wrote:
>
>> Someone added the Arctic National Wildlife Refuge to OSM but did not add
>> a bunch of inner areas that aren't part of the refuge. I have the inners in
>> a shapefile that end up in a separate layer when I import them into JOSM. I
>> would like to add those inners to the existing boundary of the refuge. How
>> can I transfer those inners from the shape layer to my data layer?
>>
>> I've tried everything I can think of, including the special paste
>> function inside the Relation Toolbox I learned about recently, but cannot
>> get them to transfer *en masse*. I can copy and paste them one at a time
>> but there are a few dozen tiny parcels. I also tried pasting them in place
>> and then using JOSM's Search function to select "type:way untagged new" and
>> that worked but it's clumsy.
>> There must be a better way to do this.
>>
>
> If you have just the one multipolygon in the shapefile, or you have just
> the inners in the shapefile, it's pretty easy.
>
> Import the shapefile into JOSM. Yes, it comes in as a new layer.
>
> Select the inner rings by whatever means.  One possibility is to delete
> the outer ring (just don't save the shapefile again, or save it under a new
> name before you start so that you can throw it away) and then 'Select All'
> followed by 'Select->Unselect Nodes' (Shift+U). Copy the inner ways
> (Ctrl+C).
>
> Switch to the OSM layer and do Ctrl+Alt+V (Paste at Source Location).
>
> You now have your newly pasted items selected. Bring up the relation
> editor on your relation, and you'll see the selected items in the
> right-hand column. Use the 'insert at the bottom' button in the middle bar
> to bring them over. into the relation.
>
> Now they're in the left-hand column, and still selected.  Type 'inner' in
> the 'role' prompt at the bottom and hit the check mark. Now they're all
> inner ways.
>
> If you're afraid of losing the selection, add some tag like 'dave=1' to
> the items before you copy-n-paste, and then the Search dialog can find them
> easily. (Don't forget to delete the tag when you're done!)
>
>
>

-- 
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tagging/attachments/20181031/2c56025a/attachment-0001.html>


More information about the Tagging mailing list