Closed phobson closed 9 years ago
I'm not sure it's fair for python-geojson
to handle encoding for non-standard numeric types. If you're looking for a solution, you can always write your own JSON encoder/decoder and pass it to dumps
/loads
. Does this answer your question? Let me know if it doesn't.
It absolutely does. I just wanted to check in case this wasn't expected behavior.
The library is wonderful :+1:
And many thanks for the SO link. Very useful.
Ugh. I have have a mind to write a new numpy. More modular, more interoperable, less clusterfuckery.
On Thu, Nov 20, 2014 at 8:44 PM, Corey Farwell notifications@github.com wrote:
I'm not sure it's fair for
python-geojson
to handle encoding for non-standard numeric types. If you're looking for a solution, you can always write your own JSON encoder/decoder and pass it todumps
/loads
. Does this answer your question? Let me know if it doesn't.Reply to this email directly or view it on GitHub: https://github.com/frewsxcv/python-geojson/issues/49#issuecomment-63912485
I noticed that the
json
library in Python 3.3 (and likely other versions) isn't playing nice with numpy scalars. Given the GIS ecosystem's affinity for numpy, I'm curious if:Consider the following: