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

Add a coordtype method #128

Open
rafaqz opened this issue Apr 17, 2024 · 1 comment
Open

Add a coordtype method #128

rafaqz opened this issue Apr 17, 2024 · 1 comment

Comments

@rafaqz
Copy link
Member

rafaqz commented Apr 17, 2024

I'm not sure if this is possible (do any formats allow mixed coordinate types like Float32 and Float64 in the same dataset on even the same polygon??)

But it would be good to be able to get the coord type at any level, e.g. on a feature or polygon as well as a point. Then we can pass it into loops to fix type stability, and use it to e.g. preallocate vectors.

@asinghvi17 @skygering were discussing this on slack recently. Currently in GeometryOps,jl we just default to Float64 and allow user override. But it could be nice to detect the coord type and use that.

@asinghvi17
Copy link
Member

Formats would not allow mixed coordinate types but it would be super useful to have e.g. Unitful support.

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

2 participants