43 |
class Projection(BaseProjection): |
class Projection(BaseProjection): |
44 |
"""A proj4 projection object that remembers the parameters. |
"""A proj4 projection object that remembers the parameters. |
45 |
|
|
46 |
Note: it seems that calling |
The proj library is not robust against decimal_point != '.' locales. |
47 |
|
Since python 2.4 calls C extensions with the set locale, it can create |
48 |
|
a problem. It seems that calling |
49 |
self.assuregoodlocale() |
self.assuregoodlocale() |
50 |
self.assureinitlocale() |
self.assureinitlocale() |
51 |
before BaseProjection.__init__() is enough to work around the bug. |
before BaseProjection.__init__() is enough to work around this. |
52 |
|
|
53 |
We assuming that the locale stays the same after a projection |
We assuming that the locale stays the same after a projection |
54 |
has been initialised |
has been initialised |