[GRASS-SVN] r73547 - grass-addons/grass7/vector/v.in.pygbif

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 14 14:04:44 PDT 2018


Author: veroandreo
Date: 2018-10-14 14:04:44 -0700 (Sun, 14 Oct 2018)
New Revision: 73547

Modified:
   grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py
Log:
v.in.pygbif: add encoding in target_crs (on behalf of Stefan Blumentrath)

Modified: grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py
===================================================================
--- grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py	2018-10-14 19:57:47 UTC (rev 73546)
+++ grass-addons/grass7/vector/v.in.pygbif/v.in.pygbif.py	2018-10-14 21:04:44 UTC (rev 73547)
@@ -394,7 +394,7 @@
 
     # Set reprojection parameters
     # Set target projection of current LOCATION
-    target_crs = grass.read_command('g.proj', flags='fj').rstrip(os.linesep)
+    target_crs = grass.read_command('g.proj', flags='fj').rstrip(os.linesep).encode('utf-8')
     target = osr.SpatialReference(target_crs)
     target.ImportFromProj4(target_crs)
     if target == 'XY location (unprojected)':



More information about the grass-commit mailing list