[QGIS-trac] Re: [Quantum GIS] #3697: Zoom to full extent considers only visible layers

Quantum GIS qgis at qgis.org
Thu Apr 7 06:08:20 EDT 2011


#3697: Zoom to full extent considers only visible layers
--------------------------------+-------------------------------------------
   Reporter:  pcav              |              Owner:  sunilkcube   
       Type:  bug               |             Status:  assigned     
   Priority:  minor: annoyance  |          Milestone:  Version 1.7.0
  Component:  GUI               |            Version:               
   Keywords:                    |   Platform_version:               
   Platform:  All               |           Must_fix:  No           
Status_info:  0                 |  
--------------------------------+-------------------------------------------

Comment(by sunilkcube):

 Replying to [comment:5 wonder]:

 >Using layers from QgsMapLayerRegistry for zoom full functionality may not
 always work correctly. Not all layers in the registry have to be
 necessarily connected with the map renderer. There could be other
 (unrelated) map canvases with their map renderers with different set of
 layers...

  Thanks for your suggestions ! Can we use the layers directly from the
 QgsMapCanvas(layers got from the QgsLegend) instead of QgsMapLayerRegistry
 for calculating full extent. I have attached a sample patch file regarding
 this, Can you please verify whether this logic is fine ? Waiting for your
 comments ...

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3697#comment:6>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list