/[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 1249 by jonathan, Tue Apr 29 09:01:12 2003 UTC revision 1250 by jonathan, Fri Jun 20 09:27:43 2003 UTC
# Line 15  import Projection Line 15  import Projection
15  BaseProjection = Projection.Projection  BaseProjection = Projection.Projection
16  del Projection  del Projection
17    
18    PROJ_UNITS_METERS  = 1
19    PROJ_UNITS_DEGREES = 2
20    
21  class Projection(BaseProjection):  class Projection(BaseProjection):
22    
23      """A proj4 projection object that remembers the parameters"""      """A proj4 projection object that remembers the parameters"""
# Line 75  class Projection(BaseProjection): Line 78  class Projection(BaseProjection):
78          """Return list of 'parameter=value' strings"""          """Return list of 'parameter=value' strings"""
79          return self.params          return self.params
80    
81        def GetProjectedUnits(self):
82            if self.GetParameter("proj") == "latlong":
83                return PROJ_UNITS_DEGREES
84            else:
85                return PROJ_UNITS_METERS
86    
87      def __repr__(self):      def __repr__(self):
88          return self.name + ": " + repr(self.params)          return self.name + ": " + repr(self.params)
89    

Legend:
Removed from v.1249  
changed lines
  Added in v.1250

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26