<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I just ran the script proposed in the
April 26 posting in the Acton area, and I got the message "This
map intentionally left blank. (received empty dataset)". Does this
mean that all the mistakes are all now repaired? Or is there a
problem with the script?<br>
<br>
Joe Holmes<br>
<br>
On 05/07/2017 08:59 AM, Joseph Holmes wrote:<br>
</div>
<blockquote
cite="mid:6c2ed85c-006a-551c-f4b9-da890ef8267e@alum.mit.edu"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<b>Alan & Ruth Bragg</b> <a moz-do-not-send="true"
href="mailto:talk-us-massachusetts%40openstreetmap.org?Subject=Re%3A%20%5BTalk-us-massachusetts%5D%20Old%20style%20polygons&In-Reply-To=%3CCAJNWF5AVvQQs0OD%3DMXEt9QfkJGhJNPvQiKcsXOEAxkn27Tzqaw%40mail.gmail.com%3E"
title="[Talk-us-massachusetts] Old style polygons">alan.ruth.bragg
at gmail.com </a><br>
<i>Wed Apr 26 17:25:40 UTC 2017</i>
<hr>
<pre>I've been following the OSM discussion about fixing old style polygons.
That's where the tags are on the outer way and should be on the relation
itself.
One fellow suggested an overpass-turbo <a moz-do-not-send="true" href="http://overpass-turbo.eu/">http://overpass-turbo.eu/</a> script to
locate problems.
I tested it in MA and found 265 problems between Worcester & Waltham.
They are pretty simple to fix in JOSM.
--------------------------------------------
Open JOSM
Go to <a moz-do-not-send="true" href="http://overpass-turbo.eu/">http://overpass-turbo.eu/</a> in your browser
Scroll the slippy map to a known location.
Paste the following script into the window on left.
relation({{bbox}})
[type=multipolygon]
(if:count_tags()==1);
(._;>;);
out meta;
Select "Run"
I picked an area between Worcester & Waltham and found 265 polygons that
need work
select "Export"
select "JOSM"
They polygons will load in JOSM (if you have remote control enabled)
In JOSM
Select the outer way of a polygon.
Copy the tags (Edit Menu-Copy Tags).
Select the polygon relation.
Use the "+++" icon to paste the tags into the relation.
Go back to the outer way and select the tags and click the trash can to
delete them.
Upload the data. My comment is "fixing old style polygons"
Please let me know if you know any shortcuts.
Alan
</pre>
</blockquote>
<br>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Joe Holmes
<a class="moz-txt-link-abbreviated" href="mailto:Joseph.Holmes@alum.mit.edu">Joseph.Holmes@alum.mit.edu</a>
978-635-1982</pre>
</body>
</html>