Closed yohanboniface closed 9 years ago
I've tried this request:
SELECT DISTINCT ON (way) ST_MakeLine(sp,ep) as way, admin_level FROM (SELECT ST_PointN(way,
generate_series(1, ST_NPoints(way)-1)) as sp, ST_PointN(way, generate_series(2, ST_NPoints(way) )) as ep,
admin_level FROM (SELECT (ST_Dump(ST_Boundary(way))).geom as way, admin_level FROM
planet_osm_polygon where boundary='administrative' AND admin_level IN ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10') AND
boundary IS NOT NULL ORDER BY admin_level) AS linestrings ORDER BY admin_level) AS segments
but the result is too uneven, sounds like some pieces have not a strict overlap:
I haven't verified it, but I assume that this also causes the following at low zoom levels ? Look at the difference between Greenland and Canada/USA for example.
Yep!
@pnorman any suggestion on this, by chance?
OpenMapSurfer does is well, but I don't know how http://129.206.74.245/?zoom=11&lat=19.67518&lon=-72.30377&layers=B00000FFFF
https://github.com/gravitystorm/openstreetmap-carto/pull/1107 is partially solving this for openstreetmap-carto
Thanks to @math1985, I've been able to move forward on this! (Thanks also @mkoniecz for pointing me to the PR).
Here are some before/after (without terrain, as prod server doesn't have terrain worldwide):
And here are some screenshots with terrain:
To test:
From http://support.mapbox.com/discussions/tilemill/885-draw-dashed-borders-of-polygons