geopandas / pyogrio

Vectorized vector I/O using OGR
https://pyogrio.readthedocs.io
MIT License
260 stars 22 forks source link

BUG: Fix integer overflow when reading int64 column #260

Closed theroggy closed 11 months ago

theroggy commented 11 months ago

Closes #259

OwenLu88 commented 9 months ago

I'm using the 0.6.0 version now. I don't know how to fix it in the current version. Could you help me?

theroggy commented 9 months ago

It depends a bit on your specific needs, but using the current version you could try using read_datafram with use_arrow=True. This is a bit experimental, so you could run in other issues, but it is something you can try without having to wait for a new version to land.

OwenLu88 commented 9 months ago

OK. Thanks. I will try it. BTW, do you have a plan to release a new version(0.7.0)?

OwenLu88 commented 9 months ago

Wow, it's a good solution using read_dataframe with use_arrow=True can fix the issue. Very very thanks.

theroggy commented 9 months ago

OK. Thanks. I will try it. BTW, do you have a plan to release a new version(0.7.0)?

Yes, but there is no date fixed yet.

OwenLu88 commented 9 months ago

I run an executable file after running pyinstaller. It reported, "Failed to execute script 'main' due to unhandled exception: No module named 'pyogrio._geometry'". Why is it?

theroggy commented 9 months ago

I run an executable file after running pyinstaller. It reported, "Failed to execute script 'main' due to unhandled exception: No module named 'pyogrio._geometry'". Why is it?

I don't think this is related to this PR? Anyway, I'm not familiar with pyinstaller, so I'm afraid I cannot help you.

OwenLu88 commented 9 months ago

I got it. Thanks.

jorisvandenbossche commented 9 months ago

If you run into issues with pyinstaller, you can always open a new issue (although I am afraid that none of us is very familiar with it, but there might be others that have the same issue or can help)