Treat geojson input in CLI as text, not binary
Treat geojson input in CLI as text, not binary

The file input-geojson in the CLI
(i.e. rio zonalstats [...]) should be read as text,
not binary.

In Python 3, input_geojson.read() otherwise returns
a bytes object which is not accepted by json.loads().

The change is tested in Python 2.7.8 and Python 3.4.3.

perrygeo/python-rasterstats,perrygeo/python-raster-stats,ozak/python-raster-stats,doclements/python-rasterstats,ozak/python-raster-stats,perrygeo/python-raster-stats,doclements/python-rasterstats,perrygeo/python-rasterstats