<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where did ogr2ogr go? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651532#M74715</link>
    <description>&lt;P&gt;it was just a sample that shipped with the gdal/osgeo_utils package and seems to have been removed with this PR:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/OSGeo/gdal/pull/9633" target="_blank" rel="noopener"&gt;https://github.com/OSGeo/gdal/pull/9633&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can check the commit for that PR and just copy down the original file and add it back to your environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's more info in the parent PR here:&amp;nbsp;&lt;A href="https://github.com/OSGeo/gdal/pull/9628" target="_blank" rel="noopener"&gt;https://github.com/OSGeo/gdal/pull/9628&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like they just didn't want to maintain it since the cpp version of the tool was faster and maintaining tests for both implementations was a pain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like they replaced ogr2ogr with ogrupdate&lt;/P&gt;&lt;P&gt;&lt;A href="https://gdal.org/en/stable/api/python/python_samples.html#python-vector-sample-scripts" target="_blank"&gt;https://gdal.org/en/stable/api/python/python_samples.html#python-vector-sample-scripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Oct 2025 16:40:29 GMT</pubDate>
    <dc:creator>HaydenWelch</dc:creator>
    <dc:date>2025-10-04T16:40:29Z</dc:date>
    <item>
      <title>Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651065#M74702</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a script that relies on ogr2ogr, written for 3.1 and works just fine in 3.3&lt;/P&gt;&lt;P&gt;I'm testing 3.5 ahead of our upgrade and the script is failing, telling me that ogr2ogr cannot be imported.&lt;/P&gt;&lt;P&gt;A search in file explorer (over all of Pro's ProgramFiles) shows that it just isn't there.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;U&gt;&lt;STRONG&gt;3.3&lt;/STRONG&gt;&lt;/U&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;U&gt;&lt;STRONG&gt;3.5&lt;/STRONG&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1758123029070.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140542iC3F724327E9A3E18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1758123029070.png" alt="AlfredBaldenweck_1-1758123029070.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1758123017177.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140541i9CDE0EEA1869BEF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1758123017177.png" alt="AlfredBaldenweck_0-1758123017177.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So uhhh. Where did it go? Was it renamed or something?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 15:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651065#M74702</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-09-17T15:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651162#M74705</link>
      <description>&lt;P&gt;When you say "relies on," are you importing ogr2ogr.py or calling it as a command?&amp;nbsp; If the latter:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Library\bin\ogr2ogr.exe&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Sep 2025 18:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651162#M74705</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-09-17T18:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651166#M74706</link>
      <description>&lt;P&gt;Importing it. Miles easier than figuring out how to use OGR to copy each table manually.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from osgeo_utils.samples import ogr2ogr
#Code
ogr2ogr.main(['ogr2ogr', '-f', 'GPKG',#'-resolveDomains',
                          mid_ds, in_ds])&lt;/LI-CODE&gt;&lt;P&gt;I don't see that exe file in my 3.3 install, and unfortunately my remote machine is logged in to a different 3.3 and running something for the next few hours, so I can't check the 3.5 yet.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 18:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651166#M74706</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-09-17T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651532#M74715</link>
      <description>&lt;P&gt;it was just a sample that shipped with the gdal/osgeo_utils package and seems to have been removed with this PR:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/OSGeo/gdal/pull/9633" target="_blank" rel="noopener"&gt;https://github.com/OSGeo/gdal/pull/9633&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can check the commit for that PR and just copy down the original file and add it back to your environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's more info in the parent PR here:&amp;nbsp;&lt;A href="https://github.com/OSGeo/gdal/pull/9628" target="_blank" rel="noopener"&gt;https://github.com/OSGeo/gdal/pull/9628&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like they just didn't want to maintain it since the cpp version of the tool was faster and maintaining tests for both implementations was a pain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like they replaced ogr2ogr with ogrupdate&lt;/P&gt;&lt;P&gt;&lt;A href="https://gdal.org/en/stable/api/python/python_samples.html#python-vector-sample-scripts" target="_blank"&gt;https://gdal.org/en/stable/api/python/python_samples.html#python-vector-sample-scripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2025 16:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651532#M74715</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-10-04T16:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651578#M74716</link>
      <description>&lt;P&gt;If you're just using it that way, you can fork the command out using the subprocess module:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import subprocess

ogr2ogr = 'C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Library\bin\ogr2ogr.exe'
subprocess.run([ogr2ogr, '-f', 'GPKG', #'-resolveDomains',
                          mid_ds, in_ds])&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Sep 2025 18:23:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651578#M74716</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-09-18T18:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Where did ogr2ogr go?</title>
      <link>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651630#M74717</link>
      <description>&lt;P&gt;Yeah, ok, can absolutely confirm that ogr2ogr.exe does not exist on my 3.5 machine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1758225631413.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/140679iBD2AC2AFCFB6B57F/image-size/large?v=v2&amp;amp;px=999" role="button" title="AlfredBaldenweck_0-1758225631413.png" alt="AlfredBaldenweck_0-1758225631413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In any case, reading those linked github pages, it seems like gdal.VectorTranslate() is the way to go, which unfortunately means I need to figure out how to make t&lt;A href="https://gis.stackexchange.com/questions/404338/replicating-ogr2ogr-operation-with-gdal-vector-translate" target="_self"&gt;hat work&lt;/A&gt; instead. Super sucky, but hopefully it will work better than ogr2ogr?&lt;/P&gt;&lt;P&gt;As it is, I ran into the issue of some tables would properly get copied into fGDB and other properly into GPKG, but not everything went to both, so I was doing both and then copying everything into one place. Not efficient at all.&lt;/P&gt;&lt;P&gt;Thanks guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 20:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-did-ogr2ogr-go/m-p/1651630#M74717</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-09-18T20:04:08Z</dc:date>
    </item>
  </channel>
</rss>

