Re: [Qgis-developer] No Zoom to selected point
Sorry Bernhard was my mistake... I had a layer but it was composed of circular polygons similar to point. sorry for the noise On 4 December 2013 07:50, Bernhard Ströbl bernhard.stro...@jena.de wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
ok, created a ticket [1] Bernhard [1] http://hub.qgis.org/issues/9160 Am 04.12.2013 08:52, schrieb Marco Hugentobler: Oh, you are right! But then, wouldn't it be sensible to have the program do that for me? Maybe zoom to a certain scale that is related to say the size of the bounding box of the layer? So the scale would be different for a layer containing global disaster points compared to one containing local addresses. Zoom to a scale related to the layer bbox sounds much better than zooming in a fixed factor. Marco On 04.12.2013 08:45, Bernhard Ströbl wrote: Am 04.12.2013 08:38, schrieb Marco Hugentobler: I have no means to see the particular point I selected and that is worse than unconvenient. Of course you have. You know the point is in the middle of the screen, so you can manually zoom to it. It is just not convenient :-) Oh, you are right! But then, wouldn't it be sensible to have the program do that for me? Maybe zoom to a certain scale that is related to say the size of the bounding box of the layer? So the scale would be different for a layer containing global disaster points compared to one containing local addresses. Bernhard On 04.12.2013 08:19, Bernhard Ströbl wrote: Hi Marco, of course it is undefined, but IMHO something should happen if you click zoom to selected. If I have a cloud of points and nothing happens I have no means to see the particular point I selected and that is worse than unconvenient. How does other GIS software handle this problem? Bernhard Am 04.12.2013 07:57, schrieb Marco Hugentobler: Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus
Re: [Qgis-developer] No Zoom to selected point
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
not confirmed in f21562c not confirmed in f1f2e16 On 3 December 2013 16:40, Vincent Mora vincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
Hi Marco, of course it is undefined, but IMHO something should happen if you click zoom to selected. If I have a cloud of points and nothing happens I have no means to see the particular point I selected and that is worse than unconvenient. How does other GIS software handle this problem? Bernhard Am 04.12.2013 07:57, schrieb Marco Hugentobler: Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
I have no means to see the particular point I selected and that is worse than unconvenient. Of course you have. You know the point is in the middle of the screen, so you can manually zoom to it. It is just not convenient :-) On 04.12.2013 08:19, Bernhard Ströbl wrote: Hi Marco, of course it is undefined, but IMHO something should happen if you click zoom to selected. If I have a cloud of points and nothing happens I have no means to see the particular point I selected and that is worse than unconvenient. How does other GIS software handle this problem? Bernhard Am 04.12.2013 07:57, schrieb Marco Hugentobler: Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
Am 04.12.2013 08:38, schrieb Marco Hugentobler: I have no means to see the particular point I selected and that is worse than unconvenient. Of course you have. You know the point is in the middle of the screen, so you can manually zoom to it. It is just not convenient :-) Oh, you are right! But then, wouldn't it be sensible to have the program do that for me? Maybe zoom to a certain scale that is related to say the size of the bounding box of the layer? So the scale would be different for a layer containing global disaster points compared to one containing local addresses. Bernhard On 04.12.2013 08:19, Bernhard Ströbl wrote: Hi Marco, of course it is undefined, but IMHO something should happen if you click zoom to selected. If I have a cloud of points and nothing happens I have no means to see the particular point I selected and that is worse than unconvenient. How does other GIS software handle this problem? Bernhard Am 04.12.2013 07:57, schrieb Marco Hugentobler: Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] No Zoom to selected point
Oh, you are right! But then, wouldn't it be sensible to have the program do that for me? Maybe zoom to a certain scale that is related to say the size of the bounding box of the layer? So the scale would be different for a layer containing global disaster points compared to one containing local addresses. Zoom to a scale related to the layer bbox sounds much better than zooming in a fixed factor. Marco On 04.12.2013 08:45, Bernhard Ströbl wrote: Am 04.12.2013 08:38, schrieb Marco Hugentobler: I have no means to see the particular point I selected and that is worse than unconvenient. Of course you have. You know the point is in the middle of the screen, so you can manually zoom to it. It is just not convenient :-) Oh, you are right! But then, wouldn't it be sensible to have the program do that for me? Maybe zoom to a certain scale that is related to say the size of the bounding box of the layer? So the scale would be different for a layer containing global disaster points compared to one containing local addresses. Bernhard On 04.12.2013 08:19, Bernhard Ströbl wrote: Hi Marco, of course it is undefined, but IMHO something should happen if you click zoom to selected. If I have a cloud of points and nothing happens I have no means to see the particular point I selected and that is worse than unconvenient. How does other GIS software handle this problem? Bernhard Am 04.12.2013 07:57, schrieb Marco Hugentobler: Hi Bernhard If one point is selected, it is somehow undefined how far to zoom in. Earlier behaviour was to just zoom in by a factor of two. This however is very unconvenient if you repeatedly select entries in the attribute table and click 'zoom to selected'. Regards, Marco On 04.12.2013 07:50, Bernhard Ströbl wrote: 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 Moravincent.m...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer ___ Qgis-developer mailing list Qgis-developer@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@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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 9127 (20131203) __ The message was checked by ESET Mail Security. http://www.eset.com
[Qgis-developer] No Zoom to selected point
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer