Loosen simplification factor to 1/20 of pixel (master branch) - closes #1639

This commit is contained in:
Dane Springmeyer 2012-12-18 11:57:45 -08:00
parent ae69ee9a24
commit 5758e6d9de

View file

@ -635,7 +635,10 @@ featureset_ptr postgis_datasource::features(const query& q) const
s << "\"" << geometryColumn_ << "\"";
if (simplify_geometries_) {
const double tolerance = std::min(px_gw, px_gh) / 2.0;
// 1/20 of pixel seems to be a good compromise to avoid
// drop of collapsed polygons.
// See https://github.com/mapnik/mapnik/issues/1639
const double tolerance = std::min(px_gw, px_gh) / 20.0;
s << ", " << tolerance << ")";
}