Skip to content
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

Zoom to selection zooms more than needed #23696

Closed
qgib opened this issue Oct 28, 2016 · 10 comments
Closed

Zoom to selection zooms more than needed #23696

qgib opened this issue Oct 28, 2016 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 28, 2016

Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 15775
Affected QGIS version: 2.18.0
Redmine category:map_canvas


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.


@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Giovanni Manghi (@gioman)


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


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Harrissou Santanna (@DelazJ)


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)

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Giovanni Manghi (@gioman)


  • 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.

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Ger CO (Ger CO)


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

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2017

Author Name: Giovanni Manghi (@gioman)


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

please post an image. Thanks.

@qgib
Copy link
Contributor Author

qgib commented Mar 3, 2017

Author Name: Harrissou Santanna (@DelazJ)


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.


  • 10782 was configured as zoomtoselection.PNG
  • 10783 was configured as zoomtoselection.zip

@qgib
Copy link
Contributor Author

qgib commented Mar 3, 2017

Author Name: Giovanni Manghi (@gioman)


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.


  • 10785 was configured as Screenshot_20170303_163242.png

@qgib
Copy link
Contributor Author

qgib commented Mar 3, 2017

Author Name: Harrissou Santanna (@DelazJ)


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

@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2017

Author Name: Giovanni Manghi (@gioman)


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!

@qgib
Copy link
Contributor Author

qgib commented Apr 29, 2017

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback, please reopen of necessary.


  • resolution was changed from to not reproducable
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering labels May 25, 2019
@qgib qgib added this to the Version 2.18 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map and Legend Related to map or legend rendering
Projects
None yet
Development

No branches or pull requests

1 participant