[Qgis-developer] No Zoom to selected point

Bernhard Ströbl bernhard.stroebl at jena.de
Tue Dec 3 22:50:03 PST 2013


Hi Gino,

can you confirm what I described (_one_ point selected, does not zoom)?

I tried with f21562c on OpenSuse 64 bit.

Bernhard

Am 03.12.2013 18:01, schrieb Gino Pirelli:
> not confirmed in f21562c
> not confirmed in f1f2e16
>
>
> On 3 December 2013 16:40, Vincent Mora<vincent.mora at oslandia.com>  wrote:
>
>> I observed the same behavior (qgis master) with two points alligned on x
>> (a very simple layer indeed).
>>
>>
>> On 02/12/2013 12:15, Bernhard Ströbl wrote:
>>
>>> Dear devs,
>>>
>>> today I stumbled on a strange behaviour when zoooming to a point.
>>> To reproduce: load a point layer, select one feature in the table and
>>> click "Zoom to selection". The result is the same as if clicking "Pan map
>>> to Selection", i.e the map is panned but not zoomed.
>>> I _think_ this is because the bounding box of the selected feature has a
>>> width and height of 0. Try iface.activeLayer().
>>> boundingBoxOfSelected().width()/.height() in the Python console.
>>> Geometrically speaking this is correct but as the zoom to selected
>>> function builds on a bounding box with width/height>  0 the outcome for the
>>> user is bad.
>>> My suggestion would be to define a small rectangle around the bounding
>>> boxes' center if it has size 0 in the zoomToSelected function.
>>>
>>> Tried with QGIS 2.0.1 and current master
>>>
>>> Shall I file a ticket for this?
>>>
>>> Bernhard
>>>
>>>
>>> __________ Information from ESET Mail Security, version of virus
>>> signature database 9119 (20131202) __________
>>>
>>> The message was checked by ESET Mail Security.
>>> http://www.eset.com
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
>
>
> __________ Information from ESET Mail Security, version of virus signature database 9125 (20131203) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> __________ Information from ESET Mail Security, version of virus signature database 9125 (20131203) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>



__________ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __________

The message was checked by ESET Mail Security.
http://www.eset.com




More information about the Qgis-developer mailing list