missing projection alert
Bernhard Herzog
bh at intevation.de
Thu Jan 20 09:42:56 CET 2005
Russell Nelson <nelson at crynwr.com> writes:
> Index: Thuban/UI/legend.py
> ===================================================================
> RCS file: /thubanrepository/thuban/Thuban/UI/legend.py,v
> retrieving revision 1.37
> diff -u -r1.37 legend.py
> --- Thuban/UI/legend.py 18 Apr 2004 20:37:45 -0000 1.37
> +++ Thuban/UI/legend.py 28 Dec 2004 20:11:45 -0000
> @@ -739,8 +739,18 @@
> dc.SelectObject(bmp)
> dc.Clear()
>
> - if self.canvas.map is not None \
> - and self.canvas.map.projection is not None:
> +
> + if self.canvas.map is None:
It's better to access the map with the Map() method. This was
apparently wrong in the original code as well. Likewise, the projection
should be fetched with the GetProjection() method.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)