3 ms·
st_simplify() is your friend. http://postgis.org/docs/ST_Simplify.html http://postgis.org/docs/ST_Simplify.html
by apinstein 14y ago
st_simplify() is your friend.
http://postgis.org/docs/ST_Simplify.html http://postgis.org/docs/ST_Simplify.html
- Maxious 14y agoSpecific implementation for d3 GeoJSON datasets http://bost.ocks.org/mike/simplify/ http://bost.ocks.org/mike/simplify/
- mbostock 14y agoAs mentioned in the post, take a look at TopoJSON's topology-preserving simplification: https://github.com/mbostock/topojson/wiki https://github.com/mbostock/topojson/wiki TopoJSON's --simplify flag uses Visvalingam's algorithm. And, since it's the mesh that is simplified rather than independent features, shared borders between features will be preserved. Without this feature, you end up with something that resembles shattered glass: http://twitter.yfrog.com/z/mn13gp http://twitter.yfrog.com/z/mn13gp