h3ronpy icon indicating copy to clipboard operation
h3ronpy copied to clipboard

inverse width and height during rasterizing

Open od-forsk opened this issue 1 year ago • 1 comments

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.

od-forsk avatar Jul 18 '24 09:07 od-forsk

Thanks for the PR :+1: . 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.

nmandery avatar Jul 19 '24 10:07 nmandery