Bug report #6109

Vector Grid should handle manual extent when no extent layer is given

Added by Mikhail Titov almost 12 years ago. Updated about 7 years ago.

Assignee:Alexander Bruy
Affected QGIS version:master Regression?:
Operating System: Easy fix?:
Pull Request or Patch supplied:Yes Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:15451


How to reproduce:

  1. Start QGIS with no project or layers
  2. Go to Vector→ Research Tools→ Vector grid
  3. set up extent manually and hit OK

You'll get

Traceback (most recent call last):
File "C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools\\doVectorGrid.py", line 146, in accept
self.compute( boundBox, xSpace, ySpace, polygon )
File "C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools\\doVectorGrid.py", line 156, in compute
crs = ftools_utils.getMapLayerByName(unicode(self.inShape.currentText())).crs()
AttributeError: 'NoneType' object has no attribute 'crs'


Create layer with default projection. For some reason I'm not getting default one in the patch attached. More work is needed.

doDefineProj_py.patch Magnifier (1.12 KB) Mikhail Titov, 2012-07-27 12:59 PM

Associated revisions

Revision ad9cb9d1
Added by Alexander Bruy almost 12 years ago

allow create grid without specifying base layer (fix #6109)


#1 Updated by Giovanni Manghi almost 12 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Target version set to Version 2.0.0
  • Assignee set to Alexander Bruy
  • Category set to 44

#2 Updated by Alexander Bruy almost 12 years ago

  • Status changed from Open to Closed

#3 Updated by Alexander Bruy almost 12 years ago

  • Resolution set to fixed

#4 Updated by Giovanni Manghi about 7 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF