[GRASS-SVN] r47832 - grass-addons/grass7/raster/r.modis/libmodis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 22 12:56:11 EDT 2011
Author: neteler
Date: 2011-08-22 09:56:11 -0700 (Mon, 22 Aug 2011)
New Revision: 47832
Modified:
grass-addons/grass7/raster/r.modis/libmodis/modis.py
Log:
fix lat-long confusion for borders
Modified: grass-addons/grass7/raster/r.modis/libmodis/modis.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/modis.py 2011-08-22 16:48:31 UTC (rev 47831)
+++ grass-addons/grass7/raster/r.modis/libmodis/modis.py 2011-08-22 16:56:11 UTC (rev 47832)
@@ -546,10 +546,10 @@
horizontal = spatialContainer.find('HorizontalSpatialDomainContainer')
boundary = horizontal.find('GPolygon').find('Boundary')
for i in boundary.findall('Point'):
- la = float(i.find('PointLongitude').text)
- lo = float(i.find('PointLatitude').text)
- lon.append(la)
- lat.append(lo)
+ lo = float(i.find('PointLongitude').text)
+ la = float(i.find('PointLatitude').text)
+ lon.append(lo)
+ lat.append(la)
self.boundary.append({'lat': la, 'lon':lo})
extent = {'min_lat':min(lat),'max_lat':max(lat),'min_lon':min(lon),
'max_lon':max(lon)}
More information about the grass-commit
mailing list