#1527 closed bug (fixed)
Mapserver exports layer with wrong type
Reported by: | oz123 | Owned by: | timlinux |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Project Loading / Saving | Version: | 1.0.0 |
Keywords: | mapserver | Cc: | sherman@… |
Must Fix for Release: | No | Platform: | Debian |
Platform Version: | Awaiting user input: | no |
Description
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.
Attachments (1)
Change History (9)
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
Replying to gsherman:
It would be helpful if you can attach your QGIS project file.
Just try with any project file containg a polygon or line shapefile.
by , 15 years ago
Attachment: | sinbra2.qgs added |
---|
comment:3 by , 15 years ago
ok I attached my project file. Sorry for the late reply, it has all type of layers: point, line, polygon and raster.
comment:4 by , 15 years ago
Soory, that is a file with only two polygon layers. The funny thing is that they are displayed on my screen as polygons but when I look in the specs of the file the are point type .... so that's obviously wrong ...
comment:5 by , 15 years ago
Component: | MapServer export → Project Loading / Saving |
---|
This is a bug in the qgis project writing code, not the mapserver export. The geometry type is always set to Point.
Projects saved on OS X result in same issue.
comment:6 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
It would be helpful if you can attach your QGIS project file.