[bug #2909] (thuban) ums_mapserver extension: cannot save mapfile twice
Request Tracker
thuban-bugs at intevation.de
Wed Jan 19 14:32:15 CET 2005
this bug's URL: http://intevation.de/rt/webrt?serial_num=2909
-------------------------------------------------------------------------
Subject: ums_mapserver extension: cannot save mapfile twice
Operating System: GNU/Linux, Debian testing/unstable
Thuban version: 1.0.1, cvs20050118
wxPython version: 2.4.2.4
Python version: 2.3.4
PySQLite version: 1.0
SQLite version: 2.8.15
GDAL version: 1.2.5
proj version: 4.4.9
Did you compile Thuban yourself?
Yes, with dpkg-buildpackage
Using the ums_mapserver extension, when I create a map file, then export it and then try to reexport it under the same or a different name I get the following error:
An unhandled exception occurred:
removeClass(): Child array error. Cannot remove class, invalid index 2
(please report to http://thuban.intevation.org/bugtracker.html)
Traceback (most recent call last):
File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 284, in invoke_command
command.Execute(self.Context())
File "/usr/lib/thuban/Thuban/UI/command.py", line 121, in Execute
apply(self.function, (context,) + self.args + args, kw)
File "/usr/lib/thuban/Extensions/umn_mapserver/mf_export.py", line 159, in export_mapfile
thuban_to_map(context, theMap)
File "/usr/lib/thuban/Extensions/umn_mapserver/mf_export.py", line 106, in thuban_to_map
tblayer_to_map(tb_map, map)
File "/usr/lib/thuban/Extensions/umn_mapserver/mf_export.py", line 74, in tblayer_to_map
map.add_thubanlayer(layer)
File "/usr/lib/thuban/Extensions/umn_mapserver/mapfile.py", line 1045, in add_thubanlayer
new_layer.remove_allclasses()
File "/usr/lib/thuban/Extensions/umn_mapserver/mapfile.py", line 709, in remove_allclasses
self._mf_layer.removeClass(i)
File "/usr/lib/python2.3/site-packages/mapscript.py", line 1232, in removeClass
def removeClass(*args): return _mapscript.layerObj_removeClass(*args)
MapServerChildError: removeClass(): Child array error. Cannot remove class, invalid index 2
-------------------------------------------- Managed by Request Tracker
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)