[OSM-talk] Proposed bot edit: remove "surface=no data" and other useless surface values

Mateusz Konieczny matkoniecz at tutanota.com
Sun Sep 11 13:16:01 UTC 2022


https://wiki.openstreetmap.org/wiki/Mechanical_Edits/Mateusz_Konieczny_-_bot_account/removing_useless_surface_tags <https://wiki.openstreetmap.org/wiki/Mechanical_Edits/Mateusz_Konieczny_-_bot_account/removing_useless_surface_tags#Source_code> is now existing and code is being tested

Jul 28, 2022, 09:10 by osm at paulnorman.ca:

> On 2022-07-27 9:51 p.m., Mateusz Konieczny via talk wrote:
>
>> I propose to remove following surface tags by doing an automated edit:
>>
>> surface=unclassified https://taginfo.openstreetmap.org/tags/surface=unclassified
>> surface=no data https://taginfo.openstreetmap.org/tags/surface=no%20data
>> surface=unknown https://taginfo.openstreetmap.org/tags/surface=unknown
>> surface=undefined https://taginfo.openstreetmap.org/tags/surface=undefined
>> surface=unspecified https://taginfo.openstreetmap.org/tags/surface=unspecified
>> surface=Unspecified https://taginfo.openstreetmap.org/tags/surface=Unspecified
>>
>
>
> I agree with unclassified, unknown, and undefined as they are all coming from editor errors around the world, and removal will help prevent them while not removing useful information.
>
> I disagree with "no data", because the only use seems to be from an import that was never discussed, and if that is resolved the tag will go away.
>
> "unspecified" seems associated with some HOT organized editing from 2012 and 2017. Can we have HOT fix the data, as there's other issues with the tags used.
>
> "Unspecified" doesn't seem worth automatic rules for two occurrences.
>
>
> What software do you intend to use to do the edit, and how often do you plan to re-run it?
>
custom Python script using osm_bot_abstraction_layer (wrapper for osmapi which
is in turn a Python wrapper around OSM API)

See
https://wiki.openstreetmap.org/wiki/Mechanical_Edits/Mateusz_Konieczny_-_bot_account/removing_useless_surface_tags#Source_code
for source code.

So far it would remove
surface=unclassified
surface=unknownsurface=undefined
but it is trivial to add more values.

I rerun bot code irregularly, typically once few months or when I run other bot edits.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20220911/12d31279/attachment.htm>


More information about the talk mailing list