[QGIS-trac] [Quantum GIS] #1527: Mapserver exports layer with wrong type

Quantum GIS qgis at qgis.org
Wed Feb 4 04:56:29 EST 2009


#1527: Mapserver exports layer with wrong type
------------------------------------------------+---------------------------
   Reporter:  oz123                             |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.0.1
  Component:  MapServer export                  |            Version:  1.0.0        
   Keywords:  mapserver                         |   Platform_version:               
   Platform:  Debian                            |           Must_fix:  No           
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 Hi,
 I tried exporting a qgis project with a few vector layer to mapserver
 file. The result is pretty impressive but something unexpected happened:
 All POLYGON layers are exported as POINT TYPE layers.

 I looked at the code for ms_export.py and from what what I see I think the
 method lyr.getAttribute does not return the right type, so they all become
 POINT types.

 I tried looking into lyr.getAttribute, but couldn't find where it is.  I
 hope this is not just a false bug, and I hope I can help solving it, if
 someone directs me a bit to the right function  lyr.getAttribute (if it's
 written in python i can handle it better, but c++ will be fine too.)

 Thanks, Oz.

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