Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

sinbra2.qgs (7.9 KB ) - added by oz123 15 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by gsherman, 15 years ago

It would be helpful if you can attach your QGIS project file.

in reply to:  1 comment:2 by msieczka, 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 oz123, 15 years ago

Attachment: sinbra2.qgs added

comment:3 by oz123, 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 oz123, 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 gsherman, 15 years ago

Component: MapServer exportProject 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 timlinux, 15 years ago

Owner: changed from nobody to timlinux
Status: newassigned

comment:7 by timlinux, 15 years ago

Resolution: fixed
Status: assignedclosed

Hi

I have fixed it in r10114 (stable branch) and r10115 (trunk).

Regards

Tim

comment:8 by (none), 15 years ago

Milestone: Version 1.0.1

Milestone Version 1.0.1 deleted

Note: See TracTickets for help on using tickets.