Bug report #15775

Zoom to selection zooms more than needed

Added by Harrissou Santanna almost 3 years ago. Updated over 2 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Map Canvas
Affected QGIS version:2.18.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:23696

Description

Select a feature
Click on the zoom to selection button
You'll get the selected feature on the screen, but not entirely.

This happens whatever tool you use to zoom to feature (within attribute table dialog, context menu, from main toolbar, from View menu...). the function itself is broken.
This is a regression.

zoomtoselection.PNG (125 KB) Harrissou Santanna, 2017-03-03 06:49 AM

zoomtoselection.zip (30.4 KB) Harrissou Santanna, 2017-03-03 06:49 AM

Screenshot_20170303_163242.png (164 KB) Giovanni Manghi, 2017-03-03 08:26 AM

History

#1 Updated by Giovanni Manghi over 2 years ago

  • Status changed from Open to Feedback

I cannot really replicate with 2.18.4 on both Windows and Linux.
Can you add more details (datasource, type of geometries, etc.)?

#2 Updated by Harrissou Santanna over 2 years ago

I give it a try again (using the same data) and:
  • on macOS with 2.18.2 it works as expected
  • on Windows 10
    - it works as expected when on master (1182816)
    - it fails to render all the geometry on 2.18.3-dev (f1379e8) or 2.18.4, regardless the data format (PG vs shapefile, line vs polygon)

#3 Updated by Giovanni Manghi over 2 years ago

- it fails to render all the geometry on 2.18.3-dev (f1379e8) or 2.18.4, regardless the data format (PG vs shapefile, line vs polygon)

it works as expected here on Win 10 and 2.18.4, can you post a sample of your data and a screenshot to understand better what you see? thanks.

#4 Updated by Ger CO over 2 years ago

Giovanni Manghi wrote:

- it fails to render all the geometry on 2.18.3-dev (f1379e8) or 2.18.4, regardless the data format (PG vs shapefile, line vs polygon)

it works as expected here on Win 10 and 2.18.4, can you post a sample of your data and a screenshot to understand better what you see? thanks.

Zoom level is too high here as well. I am on win 7 64, qgis 2.18.4

#5 Updated by Giovanni Manghi over 2 years ago

Zoom level is too high here as well. I am on win 7 64, qgis 2.18.4

please post an image. Thanks.

#6 Updated by Harrissou Santanna over 2 years ago

I added some dummy data that produces this bug (actually it happens with any data) and a screenshot. Still failing zoom with 3057738.
Hope that helps.

#7 Updated by Giovanni Manghi over 2 years ago

Harrissou Santanna wrote:

I added some dummy data that produces this bug (actually it happens with any data) and a screenshot. Still failing zoom with 3057738.
Hope that helps.

works perfecty here on the very same feature you pictured in the screenshot.

Please try when a clean environment and no 3rd party plugins.

#8 Updated by Harrissou Santanna over 2 years ago

Weird...
I just ran qgis --defaultui --nocustomization --noplugins (altogether and separately) and adding the layer still gives me a truncated zoom.
Given that it seems related to Windows, did you check on a Windows ( I use osgeo4w-64) installation?

Thanks Giovanni for your tests and dedication to QGIS

#9 Updated by Giovanni Manghi over 2 years ago

Harrissou Santanna wrote:

Weird...
I just ran qgis --defaultui --nocustomization --noplugins (altogether and separately) and adding the layer still gives me a truncated zoom.
Given that it seems related to Windows, did you check on a Windows ( I use osgeo4w-64) installation?

still no issues here on Win.
Can you try recreate the spatial index for you data?

Thanks Giovanni for your tests and dedication to QGIS

thanks!

#10 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

Closing for lack of feedback, please reopen of necessary.

Also available in: Atom PDF