Skip to content

fix point order using x/y/z/m rather than getcoord #57

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

Closed
wants to merge 1 commit into from

Conversation

rafaqz
Copy link
Member

@rafaqz rafaqz commented Dec 22, 2022

Currently we lower points to json using getcoord. But getcoord doesn't check point order so e.g a (Y=1, X=2) NamedTuple will be written to JSON as [1, 2], switching the axes.

This is fixed by using GeoInterface.x GeoInterface.y etc on the point. This should be fine for all points where X/Y order are is known at compile time, but will have a performance hit where it's only known at run time.

@rafaqz
Copy link
Member Author

rafaqz commented Dec 22, 2022

Oh right this wont work until JuliaGeo/GeoInterface.jl#84 is merged

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

Successfully merging this pull request may close these issues.

1 participant