[QGIS-trac] Re: [Quantum GIS] #959: Windows Vista - Error saving project - missing datasource params at qgs file

Quantum GIS qgis at qgis.org
Fri Jul 25 10:25:45 EDT 2008


#959: Windows Vista - Error saving project - missing datasource params at qgs
file
--------------------------------------------------------------+-------------
        Reporter:  luigibr                                    |         Owner:  nobody         
            Type:  defect                                     |        Status:  new            
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.0.0  
       Component:  Project Loading / Saving                   |       Version:  0.9.1          
      Resolution:                                             |      Keywords:  project loading
Platform_version:  Vista                                      |      Platform:  Windows        
        Must_fix:  No                                         |   Status_info:  0              
--------------------------------------------------------------+-------------
Comment (by marcopx):

 Replying to [ticket:959 luigibr]:
 > I use qgis 0.91 for windows avaliable at www.qgis.org
 > I have a project with 4 postgis layer's. I do some thematic work and
 save the project.
 > When i was loading that project, a message appers saying that some
 layer's cannot be found.
 > So I open the project file (*.qgs) and the information about the schema
 was missing at node datasource (inside maplayer node).
 > To correct the file, i write the information and the project open
 without problems.
 > So i think the problem is when the QGIS write the information about db
 connection at project file (qgs file).
 >
 > ---------------------------*.qgs file save by
 qgis-----------------------------------
 > {{{
 >
 > .....
 >  <projectlayers layercount="4" >
 >         <maplayer minScale="1" maxScale="1e+08"
 scaleBasedVisibilityFlag="0" geometry="Point" type="vector" >
 >
 <id>_public___table_v2___the_geom___sql_20080226164351311</id>
 >             <datasource>dbname=db host=192.168.0.100 port=5432
 user=postgres password='******' table=*here-is-missing-the-
 squema*"table_v2" (the_geom) sql=</datasource>
 >             <layername>table_v2</layername>
 >             <srs>
 > ............
 > }}}
 >
 >
 ----------------------------------------------------------------------------------
 >
 > and
 >
 > ---------------------------*.qgs file
 edited-----------------------------------
 > {{{
 > .....
 >  <projectlayers layercount="4" >
 >         <maplayer minScale="1" maxScale="1e+08"
 scaleBasedVisibilityFlag="0" geometry="Point" type="vector" >
 >
 <id>_public___table_v2___the_geom___sql_20080226164351311</id>
 >             <datasource>dbname=db host=192.168.0.100 port=5432
 user=postgres password='******' table="public"."table_v2" (the_geom)
 sql=</datasource>
 >             <layername>table_v2</layername>
 >             <srs>
 > ...
 > }}}
 >
 -----------------------------------------------------------------------------------
 > i put "public". before "table_v2" at table description.

 could you please test that bug with 0.11.0?
 Thanks,

 Marco

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/959#comment:2>
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