[Tile-serving] [osm2pgsql] Don't check the SRID of existing tables (#311)

Sarah Hoffmann notifications at github.com
Sun Mar 8 09:46:03 UTC 2015


Turns out the SRID constrains are missing with postgis 1.5 because they are not copied over when recreating the tables in order to sort the entries. Could you add queries to reintroduce the constraints iff postgis < 2.0 after https://github.com/openstreetmap/osm2pgsql/blob/master/table.cpp#L224? The expected constraints are:
~~~
Check constraints:
    "enforce_dims_way" CHECK (st_ndims(way) = 2)
    "enforce_srid_way" CHECK (st_srid(way) = 4326)
~~~

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/311#issuecomment-77741204
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150308/05238d5a/attachment.html>


More information about the Tile-serving mailing list