Bug report #6109
Vector Grid should handle manual extent when no extent layer is given
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Alexander Bruy | ||
Category: | Processing/QGIS | ||
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 |
Description
How to reproduce:¶
- Start QGIS with no project or layers
- Go to Vector→ Research Tools→ Vector grid
- 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'
Expected¶
Create layer with default projection. For some reason I'm not getting default one in the patch attached. More work is needed.
Associated revisions
allow create grid without specifying base layer (fix #6109)
History
#1 Updated by Giovanni Manghi over 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 over 12 years ago
- Status changed from Open to Closed
Fixed in changeset ad9cb9d19440c8f95516f1bbeb10ddb03178d949.
#3 Updated by Alexander Bruy over 12 years ago
- Resolution set to fixed
#4 Updated by Giovanni Manghi over 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.