Loosen simplification factor to 1/20 of pixel (master branch) - closes #1639
This commit is contained in:
parent
ae69ee9a24
commit
5758e6d9de
1 changed files with 4 additions and 1 deletions
|
@ -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 << ")";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue