[Tile-serving] [osm2pgsql-dev/osm2pgsql] How can I figure out exactly what ways (roads, tracks) have changed based on an OSC OsmChange file? (Discussion #2144)

ImreSamu notifications at github.com
Thu Mar 21 13:22:33 UTC 2024


my answer : 
* https://community.openstreetmap.org/t/how-can-i-reliably-get-all-changed-updated-ways-based-on-an-osc-changefile/110766/3


#### TLDR version: 

using  2x  "osmium getparents"   ( https://docs.osmcode.org/osmium/latest/osmium-getparents.html )
draft code:
```
osmium cat -f opl 004.osc.gz | cut -d' ' -f1 > changes00.id
osmium getparents hungary-latest.osm.pbf --add-self --id-file changes00.id -f opl | cut -d' ' -f1 > changes01.id
osmium getparents hungary-latest.osm.pbf --add-self --id-file changes01.id -f opl | cut -d' ' -f1 > changes02.id
```
and reading to postgres ...

Managing false positive changes, such as changes to a 'fixme' tag, is more complex.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2144#discussioncomment-8865979
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2144/comments/8865979 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240321/2d919644/attachment.htm>


More information about the Tile-serving mailing list