<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Set PROJ_LIB as an environment variable (with set
      PROJ_LIB="D:\MDT\V9\bin\gdal\gdal_latest\share") rather than with
      --config, as --config is only for GDAL configuration options, and
      PROJ_LIB is only read by PROJ which reads environment variable.</p>
    <p>And don't set OGR_CT_FORCE_TRADITIONAL_GIS_ORDER=YES. It is not
      needed here.<br>
    </p>
    <div class="moz-cite-prefix">Le 08/02/2023 à 11:45, Elena Ruiz a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:AM0P192MB04984041DA3E026CF84B711BBBD89@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)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <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;}@font-face
        {font-family:"Myriad Pro";
        panose-1:2 11 7 3 3 4 3 2 2 4;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}span.rynqvb
        {mso-style-name:rynqvb;}span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:Consolas;
        mso-fareast-language:EN-US;}span.EstiloCorreo26
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}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, actually we use several versions of
          gdal and among them I have also tried it with the latest one,
          3.6.2 in x64, but it gives me these errors:<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><i>ogr2ogr -f "ESRI Shapefile"
            "C:\Users\elena\Downloads\Recinto.shp"
             "C:\Users\elena\Downloads\Recinto.gml" --config
            OGR_CT_FORCE_TRADITIONAL_GIS_ORDER YES --config PROJ_LIB
            "D:\MDT\V9\bin\gdal\gdal_latest\share"<o:p></o:p></i></p>
        <p class="MsoNormal"><i>ERROR 1: PROJ: proj_create: no database
            context specified<o:p></o:p></i></p>
        <p class="MsoNormal"><i>ERROR 1: PROJ: proj_create: no database
            context specified<o:p></o:p></i></p>
        <p class="MsoNormal"><i>ERROR 1: PROJ: proj_create: no database
            context specified<o:p></o:p></i></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"><o:p> </o:p></p>
        <p class="MsoNormal">But several things happen, it does not
          establish the PROJ_LIB directory, I am indicating the
          directory where the proj.db is, but it ignores it, I don't
          know if it needs something else. It is not recognizing the
          OGR_CT_FORCE_TRADITIONAL_GIS_ORDER label either, because the
          destination file has not modified the order of the axes, and
          finally it detects some errors in the GML file, and the
          example file is a correct GML (<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>
          ). Thank you and I hope someone can help me, regards<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <font style="FONT-FAMILY: Calibri" color="#b77540"> </font>
        <table style="FONT-FAMILY: Arial" width="100%" cellspacing="0"
          cellpadding="0" border="0">
          <colgroup style="FONT-FAMILY: Calibri"></colgroup><colgroup><col
              style="FONT-FAMILY: Calibri" width="90"> <col
              style="FONT-FAMILY: Calibri"></colgroup> <tbody>
            <tr style="FONT-FAMILY: Calibri">
            </tr>
            <tr>
              <td valign="middle" align="left">
                <p style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri;
                  FONT-WEIGHT: bold; COLOR: #529d24; PADDING-BOTTOM:
                  7px; MARGIN: 0px"> </p>
                <p style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri">
                  <table style="HEIGHT: 254px; WIDTH: 691px">
                    <tbody>
                      <tr>
                        <td style="FONT-SIZE: 10pt; HEIGHT: 6px;
                          FONT-FAMILY: Calibri; WIDTH: 560px"
                          colspan="2" valign="top"><span
                            style="FONT-FAMILY: Calibri"></span><span
                            style="FONT-SIZE: 10pt">
                            <hr> </span></td>
                      </tr>
                      <tr>
                        <td style="FONT-SIZE: 10pt; HEIGHT: 0px;
                          FONT-FAMILY: Calibri; WIDTH: 330px"
                          rowspan="2" valign="top">
                          <p style="FONT-SIZE: 10pt; FONT-FAMILY:
                            Calibri"><font style="FONT-SIZE: 12pt;
                              FONT-FAMILY: Calibri"><strong
                                style="FONT-FAMILY: Calibri"><font
                                  color="#000000">Elena Ruiz</font></strong></font>
                            <br>
                            <br>
                            <img style="HEIGHT: 55px; WIDTH: 166px"
                              src="https://www.aplitop.com/descargas/logo.png"
                              moz-do-not-send="true" width="166"
                              height="55" border="0"><br>
                            Sofware Development & Technical Support<br>
                            Tel.: +34 952 43 97 71<br>
                            <a class="moz-txt-link-abbreviated" href="mailto:eruiz@aplitop.com">eruiz@aplitop.com</a><br>
                            <strong><font color="#3a567e"><a class="moz-txt-link-abbreviated" href="http://www.aplitop.com">www.aplitop.com</a></font></strong></p>
                          <p style="FONT-SIZE: 10pt; FONT-FAMILY:
                            Calibri"> </p>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </p>
                <p style="FONT-SIZE: 10pt; FONT-FAMILY: Calibri"><span
                    style="FONT-FAMILY: Calibri"><span style="FONT-SIZE:
                      10pt"><span style="FONT-SIZE: 10pt"><span
                          style="FONT-SIZE: 10pt"><span
                            style="FONT-SIZE: 10pt"><span
                              style="FONT-SIZE: 10pt"><span
                                style="FONT-SIZE: 10pt"><span
                                  style="FONT-SIZE: 10pt"></span></span></span></span></span></span></span></span> </p>
              </td>
            </tr>
            <tr>
            </tr>
          </tbody>
        </table>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
          <colgroup> <col></colgroup> <tbody>
            <tr>
              <td style="FONT-SIZE: 9px; FONT-FAMILY: Verdana; COLOR:
                #a6a6a6; TEXT-ALIGN: justify; PADDING-TOP: 15px;
                LINE-HEIGHT: 11px" valign="top">
                <p style="FONT-SIZE: 9px; FONT-FAMILY: Verdana"
                  align="left"> </p>
                <p style="FONT-SIZE: 9px; FONT-FAMILY: Verdana"><br>
                  <br>
                   </p>
              </td>
            </tr>
          </tbody>
        </table>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="mso-fareast-language:ES">De:</span></b><span
                style="mso-fareast-language:ES"> Even Rouault
                <a class="moz-txt-link-rfc2396E" href="mailto:even.rouault@spatialys.com"><even.rouault@spatialys.com></a>
                <br>
                <b>Enviado el:</b> miércoles, 8 de febrero de 2023 11:10<br>
                <b>Para:</b> Elena Ruiz <a class="moz-txt-link-rfc2396E" href="mailto:eruiz@aplitop.com"><eruiz@aplitop.com></a>;
                <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
                <b>Asunto:</b> Re: [gdal-dev] Set axis order with
                ogr2ogr<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p>Elena,<o:p></o:p></p>
        <p><span class="rynqvb"><span lang="EN">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><o:p></o:p></p>
        <p><span class="rynqvb"><span lang="EN">Even</span></span><o:p></o:p></p>
        <div>
          <p class="MsoNormal">Le 08/02/2023 à 10:40, Elena Ruiz a
            écrit :<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <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."</span></i><o:p></o:p></p>
          <p class="MsoNormal"><i><span lang="PT"> </span></i><o:p></o:p></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:</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="PT"> </span><o:p></o:p></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</span></i><o:p></o:p></p>
          <p class="MsoNormal"><i><span lang="PT"> </span></i><o:p></o:p></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.</span><o:p></o:p></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:</span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="PT"> </span><o:p></o:p></p>
          <p class="MsoNormal"><i>ERROR 1: Field gml_id has a NULL
              content which is not allowed</i><o:p></o:p></p>
          <p class="MsoNormal"><i>ERROR 1: Unable to write feature 0
              from layer LandCoverUnit.</i><o:p></o:p></p>
          <p class="MsoNormal"><i>ERROR 1: Terminating translation
              prematurely after failed</i><o:p></o:p></p>
          <p class="MsoNormal"><i>translation of layer LandCoverUnit
              (use -skipfailures to skip errors)</i><o:p></o:p></p>
          <p class="MsoNormal"><i> </i><o:p></o:p></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></span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="PT"> </span><o:p></o:p></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 class="MsoNormal" style="text-align:center"
            align="center"><span style="mso-fareast-language:ES">
              <hr width="100%" size="2" align="center">
            </span></div>
          <table class="MsoNormalTable" style="width:354.75pt"
            width="473" cellpadding="0" border="0">
            <tbody>
              <tr style="height:18.75pt">
                <td style="padding:.75pt .75pt .75pt
                  .75pt;height:18.75pt">
                  <p style="text-align:right" align="right"><span
                      style="font-size:10.0pt;font-family:"Arial",sans-serif"><img
                        style="width:1.3229in;height:1.177in"
                        id="_x0000_i1030"
                        src="https://www.aplitop.com/descargas/firma1.jpg"
                        moz-do-not-send="true" width="127" height="113"
                        border="0"></span><span
                      style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
                </td>
                <td style="width:247.5pt;padding:.75pt .75pt .75pt
                  .75pt;height:18.75pt" width="330" valign="top">
                  <p class="MsoNormal" style="line-height:9.75pt"><strong><span
                        style="font-size:9.0pt;font-family:"Myriad
                        Pro",sans-serif;mso-fareast-language:ES">Elena
                        Ruiz
                      </span></strong><span
                      style="font-size:12.0pt;font-family:"Times
                      New Roman",serif;mso-fareast-language:ES"><br>
                    </span><span
                      style="font-size:7.0pt;font-family:"Myriad
                      Pro",sans-serif;mso-fareast-language:ES">Sofware
                      Development & Technical Support<br>
                      Tel. +34 952 43 97 71 <br>
                      <a href="mailto:eruiz@aplitop.com"
                        moz-do-not-send="true"
                        class="moz-txt-link-freetext">eruiz@aplitop.com</a><br>
                      Sumatra, 9 - 29190 Málaga (Spain)<br>
                      <strong><span style="font-family:"Myriad
                          Pro",sans-serif"><a
                            href="http://www.aplitop.com"
                            moz-do-not-send="true">www.aplitop.com</a></span></strong><b><br>
                        <br>
                      </b></span><a
                      href="https://www.facebook.com/AplitopSL/"
                      moz-do-not-send="true"><b><span
                          style="font-size:7.0pt;font-family:"Myriad
Pro",sans-serif;mso-fareast-language:ES;text-decoration:none"><img
                            style="width:.1562in;height:.1562in"
                            id="Imagen_x0020_3"
                            src="cid:part1.VilmM2oO.ExOSbaXZ@spatialys.com"
                            class="" width="15" height="15" border="0"></span></b></a><strong><span
                        style="font-size:7.0pt;font-family:"Myriad
                        Pro",sans-serif;mso-fareast-language:ES">  
                      </span></strong><a
                      href="https://twitter.com/aplitop"
                      moz-do-not-send="true"><b><span
                          style="font-size:7.0pt;font-family:"Myriad
Pro",sans-serif;mso-fareast-language:ES;text-decoration:none"><img
                            style="width:.1562in;height:.1562in"
                            id="Imagen_x0020_4"
                            src="cid:part2.drzIowhb.70EEci90@spatialys.com"
                            class="" width="15" height="15" border="0"></span></b></a><strong><span
                        style="font-size:7.0pt;font-family:"Myriad
                        Pro",sans-serif;mso-fareast-language:ES">  
                      </span></strong><a
                      href="https://www.linkedin.com/company/aplitop"
                      moz-do-not-send="true"><b><span
                          style="font-size:7.0pt;font-family:"Myriad
Pro",sans-serif;mso-fareast-language:ES;text-decoration:none"><img
                            style="width:.1562in;height:.1562in"
                            id="Imagen_x0020_5"
                            src="cid:part3.aQlDJ32K.xWY93vOG@spatialys.com"
                            class="" width="15" height="15" border="0"></span></b></a><strong><span
                        style="font-size:7.0pt;font-family:"Myriad
                        Pro",sans-serif;mso-fareast-language:ES">  
                      </span></strong><a
                      href="https://www.youtube.com/user/aplitop"
                      moz-do-not-send="true"><b><span
                          style="font-size:7.0pt;font-family:"Myriad
Pro",sans-serif;mso-fareast-language:ES;text-decoration:none"><img
                            style="width:.1562in;height:.1562in"
                            id="Imagen_x0020_6"
                            src="cid:part4.SAnOevPk.XdnP0QU5@spatialys.com"
                            class="" width="15" height="15" border="0"></span></b></a><span
                      style="font-size:12.0pt;font-family:"Times
                      New Roman",serif;mso-fareast-language:ES"><o:p></o:p></span></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p style="margin-bottom:12.0pt"><span
              style="font-size:6.0pt;font-family:"Myriad
              Pro",sans-serif">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</span><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
          <p style="margin-bottom:12.0pt"><span
              style="font-size:6.0pt;font-family:"Myriad
              Pro",sans-serif"><br>
              <br>
              <br>
              <br>
            </span><span
              style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:ES"><br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>gdal-dev mailing list<o:p></o:p></pre>
          <pre><a href="mailto:gdal-dev@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
          <pre><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
        </blockquote>
        <pre>-- <o:p></o:p></pre>
        <pre><a href="http://www.spatialys.com" moz-do-not-send="true" class="moz-txt-link-freetext">http://www.spatialys.com</a><o:p></o:p></pre>
        <pre>My software is free, but my time generally not.<o:p></o:p></pre>
      </div>
    </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>