Stream: adreses

Topic: Bot nobīdīja punktu pirms izņēma


view this post on Zulip HellMap (May 08 2023 at 17:06):

No tā, ko es sapratu: Kartētājs (nepareizi) savienoja adreses punktu ar mežu un ceļu https://www.openstreetmap.org/changeset/135142325 punktā https://www.openstreetmap.org/node/10875821717 (A). Bots pēc tam "izņēma" ārā adreses punktu. Bet sanāk, ka vispirms aizbīdīja šo punktu uz adreses vietu un tikai tad izņēma, tādējādi arī nobīdot meža/ceļa punktu (B).
a-bots-punkts.png
b-bot-spunkts.png

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.
OpenStreetMap is a map of the world, created by people like you and free to use under an open license.
Collection of scripts to update and maintain OpenStreetMap data in Latvia (currently only addresses). See https://wiki.openstreetmap.org/wiki/Automated_edits/Latvia-bot. - GitHub - Davis-Klavins/os...

view this post on Zulip Dāvis Kļaviņš (May 08 2023 at 17:34):

Labi, ka kāds pārbauda. :) Kodā salaboju: https://github.com/Davis-Klavins/osm-latvia-bot/commit/731b91895cefab13b6cc55babd0e38ea6d2a2860. Konkrēto gadījumu izlaboju manuāli: https://www.openstreetmap.org/changeset/135863114.

Corrected bug reported at https://osmlatvija.github.io/zulip-archive/stream/360959-adreses/topic/Bot.20nob.C4.ABd.C4.ABja.20punktu.20pirms.20iz.C5.86.C4.93ma.html.
OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip i-ky (May 08 2023 at 18:07):

Varbūt ir vērts paskatīties uz https://github.com/matkoniecz/osm_bot_abstraction_layer vai līdzīgām bibliotēkām, lai mazinātu tādu kļūdu iespējamību?

OSM bot abstraction layer building upon osmapi, to make easier to automate edits without causing problems. - GitHub - matkoniecz/osm_bot_abstraction_layer: OSM bot abstraction layer building upon o...

view this post on Zulip Dāvis Kļaviņš (May 08 2023 at 19:09):

Tur jau ir dažādi pitona skripti datu labošanai, neiztēlojos, kā tas varētu palīdzēt. Adrešu botā labošana tiek veikta ar PL/pgSQL. Konkrētās kļūdas jau viegli atrast:

SELECT *
FROM nodes a
INNER JOIN nodes b ON a.geom = b.geom
WHERE a.id != b.id
  AND a.tags::TEXT LIKE '%addr:%'
  AND b.id IN (
    SELECT node_id
    FROM way_nodes
    )
  AND b.version > 1;

Bija vēl pāris, salaboju.

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip Rihards Olups (May 09 2023 at 08:27):

Arī kaut kas šāds tur ir, bet tādu human-friendly sarakstu gan neatradu.

For example, automated edit may change many objects across large area. In that case it is preferable to split it into multiple edits to avoid country-sized bounding boxes. This logic is available as one of tools included in this project.

view this post on Zulip i-ky (May 09 2023 at 08:41):

Arī

changeset_comment, discussion_url, osm_wiki_documentation_page parameter values are used to apply correct changeset tags


Last updated: May 19 2024 at 21:42 UTC