[GRASS-user] raster map from coordinates in python

Stefan Blumentrath Stefan.Blumentrath at nina.no
Mon Feb 12 23:04:15 PST 2018

Thanks, Nikos!
Interesting! Not 100% sure though, how to conclude from that post.
One voice there says "the two are not comparable one should use BytesIO, when input data is bytes, and StringIO when Input data is string".
However in the this case, both seem suitable. So, the performance comparison suggests that StringIO would be better for Pyhon 2, while BytesIO will be better for Python 3 (where cStringIO will be no longer available).
So, I tend to use BytesIO with regards to future compatibility...


-----Original Message-----
From: Nikos Alexandris [mailto:nik at nikosalexandris.net] 
Sent: mandag 12. februar 2018 21.20
To: Stefan Blumentrath <Stefan.Blumentrath at nina.no>
Cc: grass-user grass-user (grass-user at lists.osgeo.org) <grass-user at lists.osgeo.org>
Subject: Re: [GRASS-user] raster map from coordinates in python

* Stefan Blumentrath <Stefan.Blumentrath at nina.no> [2018-02-12 19:41:15 +0000]:

>StringIO can be replaced with BytesIO BTW, though I don`t know what difference the two make...

Out of curiosity I did a search. https://stackoverflow.com/a/37463095



More information about the grass-user mailing list