<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif;font-size:large">wow!!!</div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><br></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">I can be imagine that a "Save as" context menu entry in QGIS would be a cool enhancement.</span></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></div><div class="gmail_default" style="font-family:garamond,serif;font-size:large">Great, works great!!!<br><br>Please if you tell me how much you would like to implement it so I organize a fundraiser.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 17 gen 2023 alle ore 16:40 Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <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 href="https://gdal.org/doxygen/classOGRCodedFieldDomain.html" target="_blank">https://gdal.org/doxygen/classOGRCodedFieldDomain.html</a> and
<a href="https://gdal.org/doxygen/classGDALDataset.html#a64d001fa0fe53c6aa51e983ca14bad39" target="_blank">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>Le 17/01/2023 à 16:30, Totò Fiandaca a
      écrit :<br>
    </div>
    <blockquote type="cite">
      <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">
          <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">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">http://qgis.it/</a></b><br>
                                                          <b>socio
                                                          GFOSS.it - </b><a href="http://gfoss.it/" target="_blank">http://gfoss.it/</a></div>
                                                          <div><b>member
                                                          OSGeo</b> - <a href="https://www.osgeo.org/member/fiandaca/" target="_blank"><b>https://www.osgeo.org/member/fiandaca/</b></a></div>
                                                          <div><b>blog:</b><b><a href="https://pigrecoinfinito.com/" target="_blank"> https://pigrecoinfinito.com/</a> <br>
                                                          FB: Co-admin
                                                          - <a href="https://www.facebook.com/qgis.it/" target="_blank">https://www.facebook.com/qgis.it/</a></b><b><a href="https://www.facebook.com/qgis.it/" target="_blank"> </a> </b></div>
                                                          <div><b>TW:<a href="http://goog_95411464" target="_blank"> </a></b><b><a href="https://twitter.com/totofiandaca" target="_blank">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></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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"><font size="2"><font face="garamond, serif"><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">pig<span></span><span></span>recoinfinito@gmail.com</a></b></font></font></div><div><font face="garamond, serif" size="2"><b>C.F</b>.: FNDSVT71E29Z103G</font></div><div><font face="garamond, serif" size="2"><b>P.IVA</b>: 06597870820</font></div><div><font face="garamond, serif" size="2"><b>membro QGIS Italia - <a href="http://qgis.it/" target="_blank">http://qgis.it/</a></b><br><b>socio GFOSS.it - </b><a href="http://gfoss.it/" style="font-weight:bold" target="_blank">http://gfoss.it/</a></font></div><div><b>member OSGeo</b> - <a href="https://www.osgeo.org/member/fiandaca/" target="_blank"><b>https://www.osgeo.org/member/fiandaca/</b></a></div><div><font face="garamond, serif" size="2"><b>blog:</b><b><a href="https://pigrecoinfinito.com/" target="_blank"> https://pigrecoinfinito.com/</a> <br>FB: Co-admin - <a href="https://www.facebook.com/qgis.it/" target="_blank">https://www.facebook.com/qgis.it/</a></b></font><b style="font-family:garamond,serif;font-size:small"><a href="https://www.facebook.com/qgis.it/" target="_blank"> </a> </b></div><div><b style="font-family:garamond,serif;font-size:small">TW:<a href="http://goog_95411464" target="_blank"> </a></b><font face="garamond, serif" size="2"><b><a href="https://twitter.com/totofiandaca" target="_blank">https://twitter.com/totofiandaca</a></b></font></div><div><font face="garamond, serif" size="2"><br></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">43°51'0.54"N  10°34'27.62"E - EPSG:4326</font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2"><br></font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">“Se la conoscenza deve essere aperta a tutti,</font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">perchè mai limitarne l’accesso?” </font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2">R. Stallman<br><br></font></font><span style="font-family:"Trebuchet MS";font-size:10px">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 style="font-family:"Trebuchet MS";font-size:10px">FIANDACA SALVATORE</span><span style="font-family:"Trebuchet MS";font-size:10px">.</span><span style="font-family:"Trebuchet MS";font-size:10px"> Qualora fosse stato ricevuto per errore si prega di informare tempestivamente il mittente e distruggere la copia in proprio possesso.<br></span><font face="garamond, serif"><font size="2"><br><br></font></font></div><div dir="ltr"><font face="garamond, serif"><font size="2"></font></font></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>