-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature #8725R: support for maximum scale at which the layer should be simplified #1094
Conversation
Hi @timlinux, this capabilty was suggested by you |
Hi Awesome thanks! Just one note on coding practice - it is nice if you can annotate your docstrings for new methods and classes etc. with
So someone browsing the API can understand what versions their code will be supported in. |
Ok, from now on I will do it, or do you want that I write it in current code ? |
@timlinux that looks like http://hub.qgis.org/issues/9375 |
You were faster than me :-), thanks @nyalldawson |
Hi Ah ok thanks. I will merge this PR in the mean time. In the bug fix period it would be nice if you can annotate any new api additions and provide a new PR. Thanks! Tim |
Feature #8725R: support for maximum scale at which the layer should be simplified
Hi I still get these errors using QGIS built against 5d02020 Regards Tim |
Hi @timlinux, can I test your layer ? |
Hi @timlinux, If you are testing a postgis layer, then these error comes from a bug in ST_Simplify function of postgis ( http://trac.osgeo.org/postgis/ticket/1698 ). This bug collapses the geometries when the tolerance is too much big. If you are using postgis, this patch fixes it: |
@ahuarte47 Yes I am using PostGIS and I can confirm that with 1099 applied the problem is resolved (and the UI is much faster to update now). Thanks Tim |
This patch adds a new setting for the simplification of vector layers:
The simplification uses a maximum scale at which generalisation should be carried out to the layer rendering options.
So e.g. if I choose 1:50000, no simplification should be carried out in scales [1:1, 1:50000].