<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Javier,
<blockquote type="cite"
cite="mid:CADRrdKvhe1E8_MK0Dk1MiGOLp2Sw+dzx4+OZKJhR43m1UxWK9w@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>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?</div>
</div>
</div>
</blockquote>
<p>If you specify a pipeline, you need to make sure it is written in
a way where its input coordinates are in the order of the input
CRS and its output in the order of the axis of the output CRS. The
rationale being that you copy&paste blindly a pipeline that
projinfo -s FOO -t BAR would output.<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://gdal.org/programs/ogr2ogr.html#cmdoption-ogr2ogr-ct">https://gdal.org/programs/ogr2ogr.html#cmdoption-ogr2ogr-ct</a> : "It
must take into account
the axis order of the source and target CRS."</p>
<p>There's no way to override this.<br>
</p>
<blockquote type="cite"
cite="mid:CADRrdKvhe1E8_MK0Dk1MiGOLp2Sw+dzx4+OZKJhR43m1UxWK9w@mail.gmail.com">
<div dir="ltr">
<div>
<div><br>
</div>
<div>What about the command line gdal_translate?<br>
</div>
</div>
</div>
</blockquote>
<p>Same as ogr2ogr / gdal.VectorTranslate</p>
<p>Even</p>
<span style="white-space: pre-wrap">
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>