[Qgis-developer] vector rendering improvement patch

A Huarte ahuarte47 at yahoo.es
Wed Oct 23 00:21:35 PDT 2013


My simplification algorithm is a new method that uses the MapToPixel data of current QgsRenderContext to ignore in the drawing of geometry the "equal-pixel device points". It has no effect if the geometry is not far of current point of view of map.

It does not uses the ST_Simplify() method (douglas-peucker algorithm) where the geometry is simplified for other "similar" geometry.



>________________________________
> De: G. Allegri <giohappy at gmail.com>
>Para: A Huarte <ahuarte47 at yahoo.es> 
>CC: qgis-developer <qgis-developer at lists.osgeo.org> 
>Enviado: Miércoles 23 de octubre de 2013 8:46
>Asunto: Re: [Qgis-developer] vector rendering improvement patch
> 
>
>
>
>> Ok Andreas, I'm going to make it configurable, will present a new option in the main properties form of the layer
>I suppose he meant to do not draw simplidied geometries during editing because it would obviously lead to produce unconsistent edits. 
>giovanni
>>
>> About of simplification in "editmode". I think is not necessary disable it, the simplification runs only on the method of painting "QgsVectorLayer::draw", not when you retrieve a geometry to treat your information.
>>
>> Alvaro
>>
>>> ________________________________
>>> De: Andreas Neumann <a.neumann at carto.net>
>>> Para: qgis-developer at lists.osgeo.org 
>>> Enviado: Martes 22 de octubre de 2013 14:03
>>> Asunto: Re: [Qgis-developer] vector rendering improvement patch
>>>
>>> Hi,
>>>
>>> Thank you for your work!
>>>
>>> Yes - I think it should be configurable. It should also automatically be
>>> turned off if a layer is in edit mode.
>>>
>>> Just my opinion,
>>> Andreas
>>>
>>> Am 22.10.2013 14:01, schrieb A Huarte:
>>> > Hello Vincent!
>>> > For now, it is not configurable, automatically applies to all vector layer to be painted.
>>> > 
>>> > I think that the userneed not configure this, of course, if dev-community suggests, will be as you say! :-)
>>> > 
>>> > 
>>> >> Is it configurable in the interface for each layer independantly ? >It should probably be, as according to the style applied to the geometries, >the simplification could be something we want for some layers and not for >others. >A checkbox in the layer properties dialog could be interesting. >Then we would have to decide if we want it activated by default or not for >dataproviders supporting it. We could have a global option for that default >too. >Vincent
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> Qgis-developer mailing list
>>> >> Qgis-developer at lists.osgeo.org
>>> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>>>
>>>
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> Qgis-developer at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131023/4ee165ea/attachment.html>


More information about the Qgis-developer mailing list