yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
142 stars 26 forks source link

boundingbox exchanged coordinates #253

Closed ErickChacon closed 3 years ago

ErickChacon commented 3 years ago

Is it desired that the boundingbox function swaps the coordinates X and Y?

using ArchGDAL; const AG = ArchGDAL
using Plots
poly = ArchGDAL.createpolygon([(5.,0.), (0.,1.), (5.,1.)])
box = AG.boundingbox(poly)
plot(poly, label = "geom")
plot!(box, label = "boundingbox", alpha = 0.4, legend = true)

boundingbox

yeesian commented 3 years ago

Thanks for the report!