Re: raster map from coordinates in python

Stefan Blumentrath <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <HE1PR02MB1211AA8A2E8921D327231C409EF60@HE1PR02MB1211.eurprd02.prod.outlook.com>
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...

Cheers
Stefan 

-----Original Message-----
From: Nikos Alexandris [mailto:[email protected]] 
Sent: mandag 12. februar 2018 21.20
To: Stefan Blumentrath <[email protected]>
Cc: grass-user grass-user ([email protected]) <[email protected]>
Subject: Re: [GRASS-user] raster map from coordinates in python

* Stefan Blumentrath <[email protected]> [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

Nikos

[..]
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.