[Qgis-developer] Mapserver Exporter Bug?

Michael Schulz mschulz at webgis.de
Mon Jun 9 09:09:29 EDT 2008


Hi,

I had the same problem and created this ticket in trac:
https://trac.osgeo.org/qgis/ticket/1111

Cheers, Michael


2008/6/9 SiGSMEM <bellemare.l at smem.fr>:
>
> Hi,
> I had the same error as John and Mauricio on MacOSX Leopard.
> Removing mapserverexport v.0.2 installed by the plugins explorer in
> "$HOME/.qgis/python/plugins/mapserver_export directory" works for me. Thank
> you.
> At least, it works for me now, which was not the case until then with
> previous version of Qgis and all the other mapserverexport plugins found
> (from 0.1 to 0.2 and all the fixes in between).
>  It is a very useful tool, far more convenient than cartoweb or mapserver
> which I can't make to run properly anyway (problems with configuration
> files) or writing the mapfile by hand.
>
> Then I encountered another trouble, now with localization.
> I use QGIS in french, and mapserver_export crash whenever I choose a unit
> with an accentuated character in the dialog box:
> In french, cchoices for units are: "dd", "pied", "mètres", "miles",
> "pouces", "kilomètres".
>
> The mapserver export plug-in works with "dd", "pied", "miles", "pouces".
>
> Unfortunately, I use the metric system (anyone ?).
> So trying with "mètres" or "kilomètres" produces an error.
>
> So, how can I make it use the unicode char that I need (8 bits ?) ?
> or
> How can I change these strings so to have "metres" instead of "mètres" ?
>
> Here is the error:
>  File
> "/Applications/qgis0.10.0.app/Contents/MacOS/share/qgis/python/plugins/mapserver_export/mapserverexport.py",
> line 91, in run
>  self.dlg.ui.txtWebHeader.text()
>  File
> "/Applications/qgis0.10.0.app/Contents/MacOS/share/qgis/python/plugins/mapserver_export/ms_export.py",
> line 64, in setOptions
>  print units, image, mapname, width, height, template, header, footer
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position
> 1: ordinal not in range(128)
>
>
> - Laurent BELLEMARE -
> SMEM
>
> MacOS 10.5.3
> QGis 0.10.0
> python 2.5.2
> GRASS 6.3 (kyngchaos build)
> mapserver 5.0.2
>
>
>
> gsherman wrote:
>>
>> You should be using the latest mapserver exporter that is included in
>> QGIS, not the plugin from the repository. Most of the problems you
>> have encountered have been fixed in the latest version. Delete the
>> $HOME/.qgis/python/plugins/mapserver_export directory and test again.
>>
>> To avoid further confusion, I have removed the mapserver_exporter
>> plugin from the respository. I will soon be releasing a standalone
>> version of the exporter, complete with map preview and other features.
>> It contains a number of fixes and enhancements over the current version.
>>
>> -gary
>>
>>
>
> --
> View this message in context: http://www.nabble.com/OGR2Layers-python-plugin-tp17398776p17658044.html
> Sent from the qgis-developer mailing list archive at Nabble.com.
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
-----------------------------------------------------------


More information about the Qgis-developer mailing list