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

inverse width and height during rasterizing #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

od-forsk
Copy link

numpy needs (height, width), but from_bounds needs (width, height)

generaed rasters are ok according to their transform but images have inversed width and height.

numpy needs (height, width), but from_bounds needs (width, height)
@nmandery
Copy link
Owner

Thanks for the PR 👍 . I will have a look soon.

Maybe it would be a good solution to have a parameter for the user to set the desired axis order. In the past I noticed that the axis ordering is not really standardized across libraries.

This is also the reason why the reverse function https://h3ronpy.readthedocs.io/en/latest/api/arrow.html#h3ronpy.arrow.raster.raster_to_dataframe takes an axis_order parameter.

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.

2 participants