ok, try this diff and let me know if there are more problems Index: scripts/r.in.wms/wms_drv.py =================================================================== --- scripts/r.in.wms/wms_drv.py (revision 73363) +++ scripts/r.in.wms/wms_drv.py (working copy) @@ -229,7 +229,7 @@ flags='wf', epsg=self.params['srs']) projection = projection.rstrip('\n') - temp_map_dataset.SetProjection(projection) + temp_map_dataset.SetProjection(grass.encode(projection))
pixel_x_length = (map_region['maxx'] - map_region['minx']) / int(map_region['cols']) pixel_y_length = (map_region['miny'] - map_region['maxy']) / int(map_region['rows']) On Wed, Sep 19, 2018 at 11:40 AM Veronica Andreo <veroand...@gmail.com> wrote: > Now I get a different one: > > Traceback (most recent call last): > File > "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/scripts/d.wms", > line 214, in <module> > sys.exit(main()) > File > "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/gui/scripts/d.wms", > line 207, in main > temp_map = wms.GetMap(options, flags) > File > "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/etc/r.in.wms/wms_base.py", > line 215, in GetMap > self.temp_map = self._download() > File > "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-gnu/etc/r.in.wms/wms_drv.py", > line 232, in _download > temp_map_dataset.SetProjection(projection) > File "/usr/lib64/python2.7/site-packages/osgeo/gdal.py", line 1851, in > SetProjection > return _gdal.Dataset_SetProjection(self, *args) > TypeError: in method 'Dataset_SetProjection', argument 2 of type 'char > const *' > > GRASS_INFO_END(3660,1) > ERROR 4: > /home/veroandreo/grassdata/latlong_wgs84/pruebas/.tmp/localhost.localdomain/3210.4: > No such file or directory > ERROR 4: > /home/veroandreo/grassdata/latlong_wgs84/pruebas/.tmp/localhost.localdomain/3210.4: > No such file or directory > > using r73371 > > Vero > > El mié., 19 sept. 2018 a las 15:27, Anna Petrášová (<kratocha...@gmail.com>) > escribió: > >> Try r73369. >> >> On Wed, Sep 19, 2018 at 8:17 AM Veronica Andreo <veroand...@gmail.com> >> wrote: >> >>> I use the module from the GUI and I get the same error as Yann in the >>> terminal, plus: >>> >>> GRASS_INFO_END(28730,1) >>> ERROR 4: >>> /home/veroandreo/grassdata/nc_spm_08_grass7/user1/.tmp/localhost.localdomain/28556.4: >>> No such file or directory >>> ERROR 4: >>> /home/veroandreo/grassdata/nc_spm_08_grass7/user1/.tmp/localhost.localdomain/28556.4: >>> No such file or directory >>> >>> Vero >>> >>> El mié., 19 sept. 2018 a las 8:50, Yann Chemin (< >>> dr.yann.che...@gmail.com>) escribió: >>> >>>> Hi >>>> >>>> maybe I am missing a library? >>>> >>>> /usr/local/grass-7.7.svn/scripts/r.in.wms url=url=" >>>> https://tiles.maps.eox.at/wms?" output=sen2cloudless layers=s2cloudless >>>> Traceback (most recent call last): >>>> File "/usr/local/grass-7.7.svn/scripts/r.in.wms", line >>>> 241, in <module> >>>> sys.exit(main()) >>>> File "/usr/local/grass-7.7.svn/scripts/r.in.wms", line >>>> 227, in main >>>> fetched_map = wms.GetMap(options, flags) >>>> File "/usr/local/grass-7.7.svn/etc/r.in.wms/wms_base.py", >>>> line 212, in GetMap >>>> self._initializeParameters(options, flags) >>>> File "/usr/local/grass-7.7.svn/etc/r.in.wms/wms_base.py", >>>> line 137, in _initializeParameters >>>> self.proj_srs = decode(self.proj_srs).rstrip('\n') >>>> NameError: global name 'decode' is not defined >>>> >>>> >>>> >>>> ---------- >>>> Dr. Yann Chemin >>>> Freelancer >>>> +33 7 83 85 5234 >>>> 3 Toulmelin, 56400 Plumergat, FR >>>> https://www.paypal.me/yannchemin >>>> _______________________________________________ >>>> grass-dev mailing list >>>> grass-dev@lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/grass-dev >>> >>> _______________________________________________ >>> grass-dev mailing list >>> grass-dev@lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/grass-dev >> >>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev