<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>I don't think we have a ready-made utility for that, so you'll
      have to write code using the field domain API:
      <a class="moz-txt-link-freetext" href="https://gdal.org/doxygen/classOGRCodedFieldDomain.html">https://gdal.org/doxygen/classOGRCodedFieldDomain.html</a> and
<a class="moz-txt-link-freetext" href="https://gdal.org/doxygen/classGDALDataset.html#a64d001fa0fe53c6aa51e983ca14bad39">https://gdal.org/doxygen/classGDALDataset.html#a64d001fa0fe53c6aa51e983ca14bad39</a><br>
    </p>
    <p>With GDAL master, it might also be easier to use the -json output
      of ogrinfo :<br>
    </p>
    <p>$ ogrinfo -json autotest/ogr/data/filegdb/Domains.gdb<br>
    </p>
    <p>[...}<br>
    </p>
    <p>  "domains":{<br>
          "MedianType":{<br>
            "description":"Road median types.",<br>
            "type":"coded",<br>
            "fieldType":"Integer",<br>
            "fieldSubType":"Int16",<br>
            "splitPolicy":"default value",<br>
            "mergePolicy":"default value",<br>
            "codedValues":{<br>
              "0":"None",<br>
              "1":"Cement"<br>
            }<br>
          },<br>
          "RoadSurfaceType":{<br>
            "description":"The road surface type",<br>
            "type":"coded",<br>
            "fieldType":"Integer",<br>
            "splitPolicy":"default value",<br>
            "mergePolicy":"default value",<br>
            "codedValues":{<br>
              "1":"Asphalt",<br>
              "2":"Gravel",<br>
              "3":"Oiled Sand",<br>
              "4":"Dirt"<br>
            }<br>
          },<br>
          "SpeedLimit":{<br>
            "description":"The maximun speed of the road",<br>
            "type":"range",<br>
            "fieldType":"Integer",<br>
            "fieldSubType":"Int16",<br>
            "splitPolicy":"default value",<br>
            "mergePolicy":"default value",<br>
            "minValue":40,<br>
            "minValueIncluded":true,<br>
            "maxValue":100,<br>
            "maxValueIncluded":true<br>
          }<br>
        },<br>
    </p>
    <p><br>
    </p>
    <p>I can be imagine that a "Save as" context menu entry in QGIS
      would be a cool enhancement.<br>
    </p>
    <p>Even</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 17/01/2023 à 16:30, Totò Fiandaca a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CADk2tEQO8DaCCGhV=yaq5OwpPrdLDRqwKqkBTVaVGoLkj4ZP9A@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_default">QGIS with gdal 3.6+ reads and writes
          gdb,<br>
          how can I export field domains to dbf/csv tables?<br>
          <br>
          In the QGIS Browser I see the domains and I would like to
          export them in tables with at least two fields: code,
          description<br>
        </div>
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature"
          data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <div dir="ltr">
                                            <div dir="ltr">
                                              <div dir="ltr">
                                                <div dir="ltr">
                                                  <div dir="ltr">
                                                    <div dir="ltr">
                                                      <div dir="ltr">
                                                        <div dir="ltr">
                                                          <div dir="ltr">
                                                          <div dir="ltr"><b>Ing.
                                                          Salvatore
                                                          Fiandaca</b><br>
                                                          <b>mobile</b>.:+39
                                                          327.493.8955 <br>
                                                          <b>m</b>: <b><a
href="mailto:pigrecoinfinito@gmail.com" target="_blank"
                                                          moz-do-not-send="true">pig<span></span><span></span>recoinfinito@gmail.com</a></b></div>
                                                          <div><b>C.F</b>.:
FNDSVT71E29Z103G</div>
                                                          <div><b>P.IVA</b>:
                                                          06597870820</div>
                                                          <div><b>membro
                                                          QGIS Italia -
                                                          <a
                                                          href="http://qgis.it/"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">http://qgis.it/</a></b><br>
                                                          <b>socio
                                                          GFOSS.it - </b><a
href="http://gfoss.it/" target="_blank" moz-do-not-send="true"
                                                          class="moz-txt-link-freetext">http://gfoss.it/</a></div>
                                                          <div><b>member
                                                          OSGeo</b> - <a
href="https://www.osgeo.org/member/fiandaca/" target="_blank"
                                                          moz-do-not-send="true"><b>https://www.osgeo.org/member/fiandaca/</b></a></div>
                                                          <div><b>blog:</b><b><a
href="https://pigrecoinfinito.com/" target="_blank"
                                                          moz-do-not-send="true"> https://pigrecoinfinito.com/</a> <br>
                                                          FB: Co-admin
                                                          - <a
                                                          href="https://www.facebook.com/qgis.it/"
target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.facebook.com/qgis.it/</a></b><b><a
href="https://www.facebook.com/qgis.it/" target="_blank"
                                                          moz-do-not-send="true"> </a> </b></div>
                                                          <div><b>TW:<a
href="http://goog_95411464" target="_blank" moz-do-not-send="true"> </a></b><b><a
href="https://twitter.com/totofiandaca" target="_blank"
                                                          moz-do-not-send="true"
class="moz-txt-link-freetext">https://twitter.com/totofiandaca</a></b></div>
                                                          <div><br>
                                                          </div>
                                                          <div dir="ltr">43°51'0.54"N  10°34'27.62"E
                                                          - EPSG:4326</div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr">“Se
                                                          la conoscenza
                                                          deve essere
                                                          aperta a
                                                          tutti,</div>
                                                          <div dir="ltr">perchè
                                                          mai limitarne
                                                          l’accesso?” </div>
                                                          <div dir="ltr">R.
                                                          Stallman<br>
                                                          <br>
                                                          <span>Questo
                                                          documento,
                                                          allegati
                                                          inclusi,
                                                          contiene
                                                          informazioni
                                                          di proprietà
                                                          di FIANDACA
                                                          SALVATORE e
                                                          deve essere
                                                          utilizzato
                                                          esclusivamente
                                                          dal
                                                          destinatario
                                                          in relazione
                                                          alle finalità
                                                          per le quali è
                                                          stato
                                                          ricevuto. E'
                                                          vietata
                                                          qualsiasi
                                                          forma di
                                                          riproduzione o
                                                          divulgazione
                                                          senza
                                                          l'esplicito
                                                          consenso di </span><span>FIANDACA
                                                          SALVATORE</span><span>.</span><span> Qualora
                                                          fosse stato
                                                          ricevuto per
                                                          errore si
                                                          prega di
                                                          informare
                                                          tempestivamente
                                                          il mittente e
                                                          distruggere la
                                                          copia in
                                                          proprio
                                                          possesso.<br>
                                                          </span><br>
                                                          <br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <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>