/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/proj.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/proj.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 738 by jonathan, Fri Apr 25 09:13:36 2003 UTC revision 745 by jonathan, Fri Apr 25 10:26:50 2003 UTC
# Line 7  Line 7 
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
# Line 17  class Projection(BaseProjection): Line 19  class Projection(BaseProjection):
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    

Legend:
Removed from v.738  
changed lines
  Added in v.745

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26