Skip to content

Commit

Permalink
Merge pull request #7 from CartoDB/2.3.x.cartodb-fix-ST_SnapToGrid
Browse files Browse the repository at this point in the history
Use same condition to open and close ST_SnapToGrid call
  • Loading branch information
Raul Ochoa committed Oct 28, 2015
2 parents c217f8c + 36ee627 commit 71eca1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/input/postgis/postgis_datasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ featureset_ptr postgis_datasource::features_with_context(query const& q,processo
s << "ST_ClipByBox2D(";
}

if (simplify_prefilter_ > 0.0) {
if (simplify_geometries_ && simplify_snap_ratio_ > 0.0) {
s<< "ST_SnapToGrid(";
}

Expand Down

0 comments on commit 71eca1f

Please sign in to comment.