Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_srid and set_srid should return/accept i32 instead of usize #156

Open
Oreilles opened this issue Aug 31, 2024 · 0 comments
Open

get_srid and set_srid should return/accept i32 instead of usize #156

Oreilles opened this issue Aug 31, 2024 · 0 comments

Comments

@Oreilles
Copy link

Oreilles commented Aug 31, 2024

GEOS reads the srid from WKB as a signed integer, and also stores it as a signed integer. This behavior should probably be preserved in this library, instead of trying to cast it to usize (and returning Err if not possible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant