[Qgis-developer] Can't Enable on the fly projection

Guy Roussin guy.roussin at teledetection.fr
Sat May 24 09:15:31 EDT 2008


Hi,

I get qgis 0.10.0 from debian.gfoss.it and i can't enable
on the fly projection even if i click on the checkbox.

I get this kind of messages when i run qgis from a terminal :

$ qgis
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Loaded /usr/lib/qgis/libcopyrightlabelplugin.so
Loaded /usr/lib/qgis/libdelimitedtextplugin.so
...
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=600000 +y_0=2200000
+a=6378249.2 +b=6356515.000000472 +towgs84=-168,-60,320,-0,-0,-0,0 +pm=2.337229166667
+units=m +no_defs'
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=600000 +y_0=2200000
+a=6378249.2 +b=6356515.000000472 +towgs84=-168,-60,320,-0,-0,-0,0 +pm=2.337229166667
+units=m +no_defs'
Warning: No valid projection. Unable to set map units.
Warning: QPainter::begin: Painter already active
Warning: No valid projection. Unable to set map units.
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=150000.01256
+y_0=5400088.4378 +ellps=intl +towgs84=81,120,129,-0,-0,-0,0 +units=m +no_defs'
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=150000.01256
+y_0=5400088.4378 +ellps=intl +towgs84=81,120,129,-0,-0,-0,0 +units=m +no_defs'
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
SpatialRefSys/ProjectSRSProj4String: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
Warning: No valid projection. Unable to set map units.
SpatialRefSys/ProjectSRSProj4String: +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
SpatialRefSys/ProjectSRSProj4String: +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0
+k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515
+towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=150000.01256
+y_0=5400088.4378 +ellps=intl +towgs84=81,120,129,-0,-0,-0,0 +units=m +no_defs'
Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
parameters='+proj=lcc +lat_1=0 +lat_2=0 +lat_0=0 +lon_0=0 +x_0=150000.01256
+y_0=5400088.4378 +ellps=intl +towgs84=81,120,129,-0,-0,-0,0 +units=m +no_defs'
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: QPainter::begin: Painter already active
Warning: QPainter::begin: Painter already active
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
SpatialRefSys/ProjectSRSProj4String: +proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0
+k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515
+towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m +no_defs
Warning: No valid projection. Unable to set map units.


When i choose a projection in the list i get "Warning: No valid
projection. Unable to set map units." in the terminal.

Thank you,

-- 
Guy Roussin


More information about the Qgis-developer mailing list