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.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins