[Tile-serving] [openstreetmap/osm2pgsql] osm2pgsql-replication: use custom SRID (PR #1698)

Jakob Miksch notifications at github.com
Sun Jul 24 10:26:02 UTC 2022


@JakobMiksch commented on this pull request.



> @@ -376,6 +376,28 @@ def update(conn, args):
         osm2pgsql.extend(('-H', args.host))
     if args.port:
         osm2pgsql.extend(('-P', args.port))
+
+    with conn.cursor() as cur:
+        cur.execute("SELECT Find_SRID('public', '{}_point', 'way')".format(args.prefix))

maybe there is a more elegant way to get the SRID of the data (?)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1698#pullrequestreview-1048622145
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1698/review/1048622145 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220724/c3d558f5/attachment.htm>


More information about the Tile-serving mailing list