This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
simplified water polygons and ST_GeoHash() #22
Labels
vector
Issues relating to the vector tile generation
running
get-external-data.py
i get:This is due to the code using ST_GeoHash() for indexing and clustering which requires transforming coordinates back into geographic which the simplified water polygons are not suited for - see gravitystorm/openstreetmap-carto#2101 which is essentially due to the same problem.
You can work around this by clipping the data before or after the import into PostGIS but generally using ST_GeoHash() in this context for proximity ordering of geometries is a bad idea - because map rendering should not depend on transforming coordinates into geographic, in particular transforming a bounding box in projected coordinates into geographic cannot generally be expected to produce a meaningful geometry. And even if that is not a problem (unmodified OSM data, rendering in Mercator) ST_GeoHash() is not a good solution for this problem - see:
https://en.wikipedia.org/wiki/Geohash#Limitations_when_used_for_deciding_proximity
Using what ST_GeoHash() does but in projected coordinates (which PostGIS does not allow at the moment) would probably be a suitable generic method.
Yes, this is probably outside the scope here but wanted to mention it none the less.
The text was updated successfully, but these errors were encountered: