Re: [gdal-dev] axis order in gdal_translate

2024-02-07 Thread Javier Jimenez Shaw via gdal-dev
Thank you. Yes, I got confused with gdal.VectorTranslate and gdal_translate, when I really meant ogr2ogr. But you realized that already. Great catch. On Wed, 7 Feb 2024 at 18:09, Even Rouault wrote: > Javier, > > > Is there a way to tell gdal.VectorTranslate that transformation is > "always_xy"

Re: [gdal-dev] axis order in gdal_translate

2024-02-07 Thread Even Rouault via gdal-dev
Javier, Is there a way to tell gdal.VectorTranslate that transformation is "always_xy", and I do not have to do the swaps manually? Or maybe there is a better way to do it? If you specify a pipeline, you need to make sure it is written in a way where its input coordinates are in the order o

[gdal-dev] axis order in gdal_translate

2024-02-07 Thread Javier Jimenez Shaw via gdal-dev
Hi I am calling the python method osgeo.gdal.VectorTranslate to convert a GeoJSON (with CRS) to shapefile. To keep consistency among EPSG versions, I have the pipeline of the conversion, using what in pyproj was "always_xy=True" gdal.VectorTranslate( dst_file,