Opened 16 years ago

Closed 13 years ago

#1111 closed enhancement (fixed)

mapfile export - some issues

Reported by: mschulz Owned by: rduivenvoorde
Priority: minor: annoyance Milestone: Version 1.7.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

Mapfile export with the python plugin in "io" has some flaws. I tried patching some of them, and will attach the changed files:

  • export of postgis statements was wrong (see ticket #1104)
  • export of layers only still writes whole mapfile
  • export uses proj4 string to create mapfile projection element
  • export doesn't distinguish between mapfile projection and layer projection
  • symbology creation changed wrt. to geometry type (e.g. WIDTH instead of SIZE, OUTLINECOLOR instead of FILLCOLOR)
  • export dialog select box "units" shouldn't translate UNITS values

Use whatever you want from the suggested changes. Cheers, Michael

Attachments (3)

ms_export.py (31.4 KB ) - added by mschulz 16 years ago.
mapserverexport.py (6.5 KB ) - added by mschulz 16 years ago.
ui_mapserverexport.py (15.9 KB ) - added by mschulz 16 years ago.

Download all attachments as: .zip

Change History (9)

by mschulz, 16 years ago

Attachment: ms_export.py added

by mschulz, 16 years ago

Attachment: mapserverexport.py added

by mschulz, 16 years ago

Attachment: ui_mapserverexport.py added

comment:1 by pcav, 15 years ago

In addition, the file is saved without extension (.map)

comment:2 by pcav, 15 years ago

Component: MapServer exportPython plugins and bindings
Milestone: Version 1.0.3Version 1.2.0

comment:3 by pcav, 14 years ago

Milestone: Version 1.5.0Version 1.6.0

comment:4 by rduivenvoorde, 13 years ago

Reviewing:

  • export of postgis statements was wrong

Is fixed

  • export of layers only still writes whole mapfile

Is fixed somewhere in history :-)

  • export uses proj4 string to create mapfile projection element

Fix proposed only working with old project file format. Now whe have a authority node which could be used for that. But I'm not sure if mapserver will take this (I mean other authorities then epsg ....). Besides this, the proj4 string will always work while only using the authority-code is more tricky eg on linux case sensitive (EPSG should then be cast to epsg etc).

  • export doesn't distinguish between mapfile projection and layer projection

still a 'wantohave', please issue feature request

  • symbology creation changed wrt. to geometry type (e.g. WIDTH instead of SIZE, OUTLINECOLOR instead of FILLCOLOR)

Fixed somewhere in history

  • export dialog select box "units" shouldn't translate UNITS values

not sure about this, fixed?

in reply to:  1 comment:5 by rduivenvoorde, 13 years ago

Owner: changed from gsherman to rduivenvoorde
Status: newassigned

Replying to pcav:

In addition, the file is saved without extension (.map)

This is fixed somewhere in history

comment:6 by rduivenvoorde, 13 years ago

Resolution: fixed
Status: assignedclosed

I will close this issue, for it is this old, holds a lot of different issues from which most of them (or all??) are fixed in the meantime.

If parts of it are still valid, please issue new ones.

Note: See TracTickets for help on using tickets.