[QGIS-trac] Re: [Quantum GIS] #418: QGIS fails to read undefined projection from user datum in shape.prj file

Quantum GIS qgis at qgis.org
Wed Aug 20 08:39:25 EDT 2008


#418: QGIS fails to read undefined projection from user datum in shape.prj file
-----------------------------------------------------+----------------------
        Reporter:  neteler at itc.it                    |         Owner:  gsherman     
            Type:  defect                            |        Status:  reopened     
        Priority:  major: does not work as expected  |     Milestone:  Version 1.0.0
       Component:  Projection Support                |       Version:  HEAD         
      Resolution:                                    |      Keywords:               
Platform_version:                                    |      Platform:  All          
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by neteler):

 In current SVN trunk i(pre 1.0.0) t continues to fail:

 {{{
 qgis viapri.shp
 Python support ENABLED :-)
 Loading python plugins
 Loaded : Plugin installer (package: plugin_installer)
 Critical: QgsSpatialRefSys::createFromWkt -- theWkt is uninitialised,
 operation failed
 Warning: QgsSpatialRefSys::getRecord failed :  select * from tbl_srs where
 parameters='+proj=tmerc +lat_0=0 +lon_0=9 +k
 =0.9996 +x_0=1500000 +y_0=0 +ellps=intl
 +towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs'
 Warning: QgsSpatialRefSys::findMatchingProj will only work if prj acr
 ellipsoid acr and proj4string are set!...
 }}}


 It works when I manually remove the TOWGS84 string from the WKT (.prj)
 file.

 Suggestion: Ignore the TOWGS84 string when matching the projection, and
 issue a *warning* (not a complete failure) that TOWGS84 differs.

 Note that most (in theory all) Italian QGIS users have this problem.
 Likewise for other countries.

 thanks,
 Markus

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/418#comment:12>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list