7 |
|
|
8 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
9 |
|
|
10 |
|
from Thuban import _ |
11 |
|
|
12 |
from types import StringTypes |
from types import StringTypes |
13 |
|
|
14 |
import Projection |
import Projection |
19 |
|
|
20 |
"""A proj4 projection object that remembers the parameters""" |
"""A proj4 projection object that remembers the parameters""" |
21 |
|
|
22 |
def __init__(self, params, name = "Unknown"): |
def __init__(self, params, name = None): |
23 |
|
"""Initialize the Projection with a list of |
24 |
|
'parameter=value' strings and an optional name. If 'name' is |
25 |
|
None, the name will be set to 'Unknown' in the local language. |
26 |
|
""" |
27 |
|
|
28 |
BaseProjection.__init__(self, params) |
BaseProjection.__init__(self, params) |
29 |
|
|
30 |
|
if name is None: |
31 |
|
name = _("Unknown") |
32 |
|
|
33 |
self.params = params |
self.params = params |
34 |
self.name = name |
self.name = name |
35 |
|
|