[bug #2492] (thuban) Default projection for layers

Request Tracker thuban-bugs at intevation.de
Fri Jun 18 11:12:43 CEST 2004


this bug's URL: http://intevation.de/rt/webrt?serial_num=2492
-------------------------------------------------------------------------

Subject: Default projection for layers

Thuban version: CVS, 17.06.2004


Regard the following situation:
- the map has a projection
- a layer is loaded

-> no layer is seen. Zoom to full extent is not available.

solution:
assign a projection to the layer

- now load a second layer
- zoom to full extent

a ZeroDivisionError is occuring (see traceback)

My wish:
- thuban should assign the map projection to layers which have no projection. This should solve the problem.

Silke

------------------ Traceback ----------------
Eine unbehandelte Ausnahme ist aufgetreten:
float division
(please report to http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
  File "/usr/src/thuban/thuban/Thuban/UI/mainwindow.py", line 282, in invoke_command
    command.Execute(self.Context())
  File "/usr/src/thuban/thuban/Thuban/UI/command.py", line 121, in Execute
    apply(self.function, (context,) + self.args + args, kw)
  File "/usr/src/thuban/thuban/Thuban/UI/mainwindow.py", line 979, in call_method
    apply(getattr(context.mainwindow, methodname), args)
  File "/usr/src/thuban/thuban/Thuban/UI/mainwindow.py", line 884, in FullExtent
    self.canvas.FitMapToWindow()
  File "/usr/src/thuban/thuban/Thuban/UI/viewport.py", line 456, in FitMapToWindow
    self.FitRectToWindow(bbox)
  File "/usr/src/thuban/thuban/Thuban/UI/viewport.py", line 445, in FitRectToWindow
    self.set_view_transform(scale, (offx, offy))
  File "/usr/src/thuban/thuban/Thuban/UI/view.py", line 350, in set_view_transform
    ViewPort.set_view_transform(self, scale, offset)
  File "/usr/src/thuban/thuban/Thuban/UI/viewport.py", line 395, in set_view_transform
    pcenterx = (wwidth/2 - offset[0]) / scale
ZeroDivisionError: float division


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