Bug report #1205

No valid projection. Unable to set map units.

Added by jcs - over 15 years ago. Updated over 14 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Map Canvas
Affected QGIS version: Regression?:No
Operating System:RedHat Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11265

Description

A vanilla build of 0.11.0 produces numerous prints of "No valid projection. Unable to set map units."

This is unavoidable and can be seen by following the execution of QgsSpatialRefSys::loadFromDb().

At the top of this function mIsValidFlag is set to false. This variable is only set to true after a call to setMapUnits().

But the first thing setMapUnits() does is check mIsValidFlag which in this case will always be false and the print will be executed.

Moving the mIsValidFlag = true before setMapUnits() fixes the "No valid projection. Unable to set map units." prints but this may not be what the author had in mind.

Associated revisions

Revision 3979d24e
Added by Jürgen Fischer over 15 years ago

fix #1205 and #1221

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9071 c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision ece87e28
Added by Jürgen Fischer over 15 years ago

fix #1205 and #1221

git-svn-id: http://svn.osgeo.org/qgis/trunk@9071 c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer over 15 years ago

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

fixed in

#2 Updated by Anonymous over 14 years ago

Milestone Version 1.0.0 deleted

Also available in: Atom PDF