Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1205 closed bug (fixed)

No valid projection. Unable to set map units.

Reported by: jcs Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: MapCanvas Version: Trunk
Keywords: QgsSpatialRefSys Cc: msieczka
Must Fix for Release: No Platform: RedHat
Platform Version: Awaiting user input: no

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.

Change History (3)

comment:1 by jef, 16 years ago

Resolution: fixed
Status: newclosed

fixed in r9071

comment:2 by msieczka, 16 years ago

Cc: msieczka added

comment:3 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.