pyprojection problem
Didrik Pinte
dpinte at itae.be
Fri Jan 25 16:58:41 CET 2008
On Fri, 2008-01-25 at 16:48 +0100, Didrik Pinte wrote:
> On Fri, 2008-01-25 at 16:33 +0100, Bernhard Reiter wrote:
> > Didrik,
> >
> > On Friday 25 January 2008 16:16, Didrik Pinte wrote:
> > > It seems there is a problem with input arguments using pyprojection.
> >
> > Is this [#586] projection exception?
And here is a workaround/patch :
Line 789 and following of Thuban/UI/projdialog.py
params = ["proj=tmerc",
"lat_0=" + str(self.__latitude.GetValue()),
"lon_0=" + str(self.__longitude.GetValue()),
"x_0=" + str(self.__falseEast.GetValue()),
"y_0=" + str(self.__falseNorth.GetValue()),
"k=" + str(self.__scale.GetValue())]
params.extend(ProjPanel.GetParameters(self))
return params
Adding a str() to each access to parameters solved the problem ...
Is this acceptable ? There is no way to have strange encoding problem
with those parameters (lat_0, etc.).
Didrik
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)