<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Elena,</p>
<p><span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span
class="ryNqvb">I almost choked when reading "I'm using GDAL
1.1.1". Do you realize this version was released 16 years
ago ? Even GDAL 2.4.4 is antiquated. Nobody longer support
those versions. Please upgrade to a recent (< 2 years)
version first. I've just verified that ogr2ogr works just
fine on our file with a recent version</span></span></span></p>
<p><span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span
class="ryNqvb">Even<br>
</span></span></span></p>
<div class="moz-cite-prefix">Le 08/02/2023 à 10:40, Elena Ruiz a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AM0P192MB0498136166FF16E7B599B3C9BBD89@AM0P192MB0498.EURP192.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello, I need to do a conversion between
GML to SHP vector files with the app ogr2ogr.exe, and be able
to set the order of the axes TRADITIONAL_GIS_ORDER /
AUTHORITY_COMPLIANT, in the OGR API documentation
(ogr_srs_api.h), I found the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i><span lang="PT">"This will honor the
axis order advertised by the source and target SRS, as
well as their “data axis to SRS axis mapping”. To have a
behavior similar to GDAL < 3.0, the
OGR_CT_FORCE_TRADITIONAL_GIS_ORDER configuration option
can be set to YES."<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="PT"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="PT">And from here I have
deduced that I could use the
OGR_CT_FORCE_TRADITIONAL_GIS_ORDER tag to establish the
order of the axes and I have used the following command
line:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span lang="PT">ogr2ogr -f "ESRI
Shapefile" "C:\Users\elena\Downloads\Recinto.shp"
"C:\Users\elena\Downloads\Recinto.gml" -co
OGR_CT_FORCE_TRADITIONAL_GIS_ORDER YES<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="PT"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="PT">I am using GDAL 1.1.1 on
x86, for this version of GDAL it does create the SHP file,
it does not give an error when executed, but it does not
make any change in the order of the axes of the destination
file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT">But I have also tried it
with version 2.4.4 for x64 and in this case it gives me the
following errors:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal"><i>ERROR 1: Field gml_id has a NULL content
which is not allowed<o:p></o:p></i></p>
<p class="MsoNormal"><i>ERROR 1: Unable to write feature 0 from
layer LandCoverUnit.<o:p></o:p></i></p>
<p class="MsoNormal"><i>ERROR 1: Terminating translation
prematurely after failed<o:p></o:p></i></p>
<p class="MsoNormal"><i>translation of layer LandCoverUnit (use
-skipfailures to skip errors)<o:p></o:p></i></p>
<p class="MsoNormal"><i><o:p> </o:p></i></p>
<p class="MsoNormal"><span lang="PT">I attach an example file in
the following link:
<a
href="https://aplitop.sharefile.com/d-scfcb397f54a649598913d6ae00d0d398"
moz-do-not-send="true" class="moz-txt-link-freetext">https://aplitop.sharefile.com/d-scfcb397f54a649598913d6ae00d0d398</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PT"><o:p> </o:p></span></p>
<p class="MsoNormal">I hope someone can tell me how I can do
what I need, thanks and regards.<o:p></o:p></p>
</div>
<hr>
<table style="HEIGHT: 50px; WIDTH: 473px">
<tbody>
<tr>
<td valing="top">
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"
align="right"><img
src="https://www.aplitop.com/descargas/firma1.jpg"
moz-do-not-send="true" border="0"></p>
</td>
<td style="FONT-SIZE: 12pt; HEIGHT: 25px; FONT-FAMILY: Times
New Roman; WIDTH: 330px" valign="top">
<div style="LINE-HEIGHT: 13px" align="left"><span
style="FONT-SIZE: 9pt; FONT-FAMILY: Myriad Pro, Open
Sans, Arial"><strong>Elena Ruiz </strong></span><br>
<span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad Pro,
Open Sans, Arial">Sofware Development & Technical
Support<br>
</span><span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad
Pro, Open Sans, Arial">Tel. +34 952 43 97 71 <br>
<a class="moz-txt-link-abbreviated" href="mailto:eruiz@aplitop.com">eruiz@aplitop.com</a><br>
Sumatra, 9 - 29190 Málaga (Spain)<br>
</span><span style="FONT-SIZE: 7pt; FONT-FAMILY: Myriad
Pro, Open Sans, Arial"><strong><a class="moz-txt-link-abbreviated" href="http://www.aplitop.com">www.aplitop.com</a><br>
<br>
<a class="socialLink"
href="https://www.facebook.com/AplitopSL/"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 15px; WIDTH: 15px"
src="cid:part1.6eAcq8tS.N2aL6Rrd@spatialys.com"
width="15" height="15" border="0"></a> <a
class="socialLink"
href="https://twitter.com/aplitop"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 15px; WIDTH: 15px"
src="cid:part2.ebXoLfuW.6PAEQn76@spatialys.com"
width="15" height="15" border="0"></a> <a
class="socialLink"
href="https://www.linkedin.com/company/aplitop"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 15px; WIDTH: 15px"
src="cid:part3.jMpFRr28.ATROp2nI@spatialys.com"
width="15" height="15" border="0"></a> <a
class="socialLink"
href="https://www.youtube.com/user/aplitop"
moz-do-not-send="true"><img class="socialLink"
style="HEIGHT: 15px; WIDTH: 15px"
src="cid:part4.Gtk7NYaa.xgqceRLE@spatialys.com"
width="15" height="15" border="0"></a></strong></span></div>
</td>
</tr>
</tbody>
</table>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro">In accordance
with the provisions of the European Regulation of Data
Protection 2016/679 (Reglamento Europeo de Protección de Datos
2016/679), we inform you that the data and the information you
provide us through this medium will be used by APLITOP, S.L.,
with C.I.F. B-92543396 and with address at C / Sumatra, 9,
Malaga, 29190, in order to answer your questions and inform
you about our products. The data provided will be kept as long
as it does not request its cessation and will not be
transferred to third parties except in cases where there is a
legal obligation. You have the right to access your personal
data, correct inaccurate data or request its deletion when the
data is no longer necessary for the purposes that were
collected, as well as any rights recognized in the RGPD
2016/679<br>
</span><span style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
</span></p>
<p style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span
style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
</span><span style="FONT-SIZE: 6pt; FONT-FAMILY: Myriad Pro"><br>
<br>
<br>
<br>
</span></p>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<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>