[GRASS-SVN] r54348 - grass-addons/grass7/raster/r.in.wms2
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 18 17:12:30 PST 2012
Author: turek
Date: 2012-12-18 17:12:30 -0800 (Tue, 18 Dec 2012)
New Revision: 54348
Modified:
grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py
Log:
r.in.wms2: import fix
Modified: grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py
===================================================================
--- grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py 2012-12-19 01:02:20 UTC (rev 54347)
+++ grass-addons/grass7/raster/r.in.wms2/r.in.wms2.py 2012-12-19 01:12:30 UTC (rev 54348)
@@ -173,8 +173,6 @@
import grass.script as grass
-from wms_base import GRASSImporter
-
def GetRegionParams(opt_region):
# set region
@@ -208,6 +206,7 @@
if flags['c']:
wms.GetCapabilities(options)
else:
+ from wms_base import GRASSImporter
options['region'] = GetRegionParams(options['region'])
importer = GRASSImporter(options['output'])
fetched_map = wms.GetMap(options, flags)
More information about the grass-commit
mailing list