Open pnorman opened 6 years ago
@pnorman this sounds like something that will be fixed under #166. The problem shows up with the Douglas Peucker simplification algorithm and right angels. In v0.6.0 I implemented a per layer simplification control so you can turn it off for problem layers without needing to turn it off for everything. the config is dont_simplify
under a map layer.
The problem shows up with the Douglas Peucker simplification algorithm and right angels.
I don't see this as something caused by DP. Scaling everything to 2048 units per tile, I made some measurements. The distance from the missing point to the line is 50, which would put a lower bound on ε.
If I blow up a different part and apply DP by hand, I get
The thin green line is 14 units long, well the bound of ε that would be necessary for this error.
All this being said, there are some tricky constraints on using DP when it comes to tile edges, buffering, and avoiding artifacts. But this isn't one of those class of problems, this is something else.
I've done a check of my tracked bugs, and this bug is still present in 0.9.x branch.
In the red box the water has had a point dropped from the region of the green circle which is essential, resulting in the line pointed at by the yellow arrow being out of place. It should be along the tile bounds.
Starting with
TEGOLA_OPTIONS=DontSimplifyGeo
gives a normal resultThe tile in question is 8/40/87 and the relevant part of the TOML file is
The data is loaded from
http://data.openstreetmapdata.com/simplified-water-polygons-complete-3857.zip
withogr2ogr -f PostgreSQL -lco GEOMETRY_NAME=way -lco SPATIAL_INDEX=FALSE -lco EXTRACT_SCHEMA_FROM_LAYER_NAME=YES -nln loading.simplified_ocean_polygons PG:dbname=gis data/simplified_ocean_polygons/simplified-water-polygons-complete-3857/simplified_water_polygons.shp
but for testing, this should work