[Tile-serving] [openstreetmap/osm2pgsql] Provide tmp .osc.gz file to post processing script (Issue #1719)

Branko Kokanovic notifications at github.com
Sat Jul 30 09:27:43 UTC 2022


Sorry if I was not being more details, it looked like an easy addition, but you are right.

Scenario:
I would like to keep my local postgis minutely up-to-date and also stream all .osc changes further down the pipeline. My scenario is monitoring and processing changes, think about real-time [monitoring tools ](https://wiki.openstreetmap.org/wiki/Quality_assurance#Monitoring_Tools), for example how would you recreate today [osm-watch](https://wiki.openstreetmap.org/wiki/Osm-watch) tool, or how would this [restaurant notifier](https://try-something-new.web.app/) be implemented in OSM. So, I basically would like to use all the easiness of osm2pgsql use, and enrich .osc data with postgis data and process it further.

P.S. I already implemented it for my needs, but I though this might be interesting to everyone

P.P.S. Slightly related to this (but I would open new issue if you are OK with it) is concept of "pre-processing". Idea is to enable scenarios where one can hook trim_osc.py to in-place edit .osc files *before* they are sent to osm2pgsql and to be able to compare old (in postgis) and new (in .osc) data for contextual differences. This "pre-processing" would also have path to temp .osc file as parameter.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1719#issuecomment-1200123884
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/issues/1719/1200123884 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220730/49dd11db/attachment.htm>


More information about the Tile-serving mailing list