From: <js...@us...> - 2008-08-07 20:57:44
|
Revision: 5997 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5997&view=rev Author: jswhit Date: 2008-08-07 20:57:42 +0000 (Thu, 07 Aug 2008) Log Message: ----------- added proj4string attribute. Modified Paths: -------------- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py Modified: trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py =================================================================== --- trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-08-07 19:53:52 UTC (rev 5996) +++ trunk/toolkits/basemap/lib/mpl_toolkits/basemap/__init__.py 2008-08-07 20:57:42 UTC (rev 5997) @@ -324,8 +324,8 @@ for crude, ``l`` for low, etc.). If None, no boundary dataset is associated with the Basemap instance. - srs a string representing the 'spatial reference system' - for the map projection as defined by PROJ.4. + proj4string the string describing the map projection that is + used by PROJ.4. ================ ==================================================== **Converting from Geographic (lon/lat) to Map Projection (x/y) Coordinates** @@ -673,7 +673,8 @@ # spatial reference string (useful for georeferencing output # images with gdal_translate). if hasattr(self,'_proj4'): - self.srs = proj._proj4.srs + #self.srs = proj._proj4.srs + self.srs = proj._proj4.pjinitstring else: pjargs = [] for key,value in self.projparams.iteritems(): @@ -686,6 +687,7 @@ continue pjargs.append('+'+key+"="+str(value)+' ') self.srs = ''.join(pjargs) + self.proj4string = self.srs # set instance variables defining map region. self.xmin = proj.xmin self.xmax = proj.xmax This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |