[QGIS-trac] [Quantum GIS] #2681: type and srid of geometry column not found using custom query with no results

Quantum GIS qgis at qgis.org
Wed Apr 28 03:12:41 EDT 2010


#2681: type and srid of geometry column not found using custom query with no
results
-------------------------------------------------------------+--------------
   Reporter:  brushtyler                                     |              Owner:  nobody       
       Type:  bug                                            |             Status:  new          
   Priority:  major: does not work as expected               |          Milestone:  Version 1.5.0
  Component:  Data Provider                                  |            Version:  HEAD         
   Keywords:  postgres provider, custom query, empty result  |   Platform_version:               
   Platform:  All                                            |           Must_fix:  No           
Status_info:  0                                              |  
-------------------------------------------------------------+--------------
 This is the message I get if I use a custom query with no results.
 {{{
 Quantum GIS was unable to determine the type and srid of column geom in
 (SELECT * FROM "public"."_ctr2k_av" AS "t_0") as "subQuery_0". The
 database communication log was:
 }}}

 I get no errors if I insert that layer from QGis GUI because if I not use
 a custom query the provider retrieve type and srid by the entry in
 geometry_columns.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2681>
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