Bug report #1231

When creating a new GRASS location, QGIS fails loading predefined regions

Added by Marco Pasetti - about 13 years ago. Updated about 12 years ago.

Assignee:Tom Elwertowski
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11291


When creating a new GRASS location, QGIS fails loading predefined regions.
For every nation selected (from Afghanistan to Zimbabwe) it loads the following region values:




#1 Updated by Paolo Cavallini about 13 years ago

Probably the same thing:

When setting up a new region, it fails:

Cannot reproject selected region.
Impossible to set a new region based on a nation, or draw a rectangle

For Italy, the coor shown are wrong:
N and S -9.99829e+06 E and W 1.5e+06

Probably because of:

OGR can't parse PROJ.4-style parameter string:
OGR Error code was 5
pm.isNull() = 0
Warning: Throwing exception

QGIS 0.11 from debian.gfoss.it.

#2 Updated by Marco Pasetti - about 13 years ago

The bug still applies on latest trunk builds.
Changed from Win Platform to All (see above)


#3 Updated by Tom Elwertowski about 13 years ago

The problem was introduced between 0.10 and 0.11 (tested using Mac builds).

The "can't parse" error appears to be unimportant -- it occurs because there is no initial selection when the projection list is first shown. The routine is called again when a projection is selected.

The problem, which I don't understand yet, is that QgsCoordinateTransform is returning the same output point for any input point. Perhaps some parameter is so far off that every input point is transformed into the same output point.

#4 Updated by Tom Elwertowski about 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Magic numbers were not updated when the srs.db was updated in 9eca6b7c (SVN r8721). Fixed by 077f0a69 (SVN r9297).

#5 Updated by Anonymous about 12 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF