Bug report #1527
Mapserver exports layer with wrong type
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||11587|
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.)