<?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: Esri Geodatabase to OSM in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065875#M61311</link>
    <description>&lt;P&gt;Thank you, Josh!&lt;BR /&gt;&lt;BR /&gt;I am looking for file conversion. I installed GDAL and use it via OSGeo4W Shell. I used "ogrinfo" for Esri geodatabas and for osm file and get information about that files (and also messages:&amp;nbsp;using driver `OpenFileGDB' successful,&amp;nbsp;using driver `OSM' successful).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, I tried to use this:&lt;BR /&gt;ogr2ogr -of OSM data.osm data.gdb&lt;BR /&gt;But I got this message:&amp;nbsp;ERROR 1: OSM driver does not support data source creation.2&lt;BR /&gt;&lt;BR /&gt;How I can fix it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 07:17:41 GMT</pubDate>
    <dc:creator>MartinAnok</dc:creator>
    <dc:date>2021-06-08T07:17:41Z</dc:date>
    <item>
      <title>Esri Geodatabase to OSM</title>
      <link>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065570#M61306</link>
      <description>&lt;P&gt;I would like to convert Esri Geodatabase (where I have points and lines features) to OSM. I found&amp;nbsp; this:&amp;nbsp;&lt;A href="https://wiki.openstreetmap.org/wiki/Ogr2osm" target="_blank"&gt;https://wiki.openstreetmap.org/wiki/Ogr2osm&lt;/A&gt;&amp;nbsp;, that can help me.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I installed ogr2pbf:&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pypi.org/project/ogr2pbf/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://pypi.org/project/ogr2pbf/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;via python (pip install ogr2pbf).&amp;nbsp;But I don't understand how to use it. How I can add my input and output data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new in python and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I hope someone will have enough patience to explain it to me.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:48:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065570#M61306</guid>
      <dc:creator>MartinAnok</dc:creator>
      <dc:date>2021-06-07T10:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Geodatabase to OSM</title>
      <link>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065596#M61307</link>
      <description>&lt;P&gt;Can you elaborate a bit on what you mean by "to OSM", and why you want to do that? Do you mean that you want an actual &lt;STRONG&gt;*&lt;/STRONG&gt;&lt;STRONG&gt;.osm &lt;/STRONG&gt;file? Or do you mean you want to get your data into OpenStreetMap? What is the end result you're envisioning?&lt;/P&gt;&lt;P&gt;I'd recommend looking at &lt;A href="https://gdal.org/programs/ogr2ogr.html" target="_self"&gt;ogr2ogr&lt;/A&gt;, a GDAL tool, if you're just looking for file conversion. It can handle import/export of basically any filetype, including &lt;A href="https://gdal.org/drivers/vector/filegdb.html#vector-filegdb" target="_self"&gt;File Geodatabase&lt;/A&gt; and &lt;A href="https://gdal.org/drivers/vector/osm.html" target="_self"&gt;OSM files&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you're trying to get your data into OSM, that's a whole other can of worms, but I won't get into it unless that's actually your end goal.&lt;/P&gt;&lt;P&gt;You might also look into &lt;A href="https://josm.openstreetmap.de/" target="_self"&gt;JOSM&lt;/A&gt;, a &lt;EM&gt;fantastic&lt;/EM&gt; tool for working with OSM data. With an extra plugin installed, JOSM can open a GIS file in some other format (shapefile for sure, unsure if FGDB is supported) and save it directly to a .osm file.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 13:05:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065596#M61307</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-07T13:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Geodatabase to OSM</title>
      <link>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065875#M61311</link>
      <description>&lt;P&gt;Thank you, Josh!&lt;BR /&gt;&lt;BR /&gt;I am looking for file conversion. I installed GDAL and use it via OSGeo4W Shell. I used "ogrinfo" for Esri geodatabas and for osm file and get information about that files (and also messages:&amp;nbsp;using driver `OpenFileGDB' successful,&amp;nbsp;using driver `OSM' successful).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, I tried to use this:&lt;BR /&gt;ogr2ogr -of OSM data.osm data.gdb&lt;BR /&gt;But I got this message:&amp;nbsp;ERROR 1: OSM driver does not support data source creation.2&lt;BR /&gt;&lt;BR /&gt;How I can fix it?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 07:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065875#M61311</guid>
      <dc:creator>MartinAnok</dc:creator>
      <dc:date>2021-06-08T07:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Geodatabase to OSM</title>
      <link>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065967#M61312</link>
      <description>&lt;P&gt;Interesting. Admittedly, I've never used ogr2ogr to produce an OSM file before, so I wasn't certain it was the right approach.&lt;/P&gt;&lt;P&gt;Looking at the &lt;A href="https://wiki.openstreetmap.org/wiki/Converting_map_data_between_formats" target="_self"&gt;OSM wiki's table of file formats&lt;/A&gt;, it looks like there is a &lt;A href="http://users.rowan.edu/~reiser/osm/" target="_self"&gt;python script&lt;/A&gt; someone developed to go ESRI → OSM. I can't vouch for it personally, but the author does say he used it for both shapefiles and geodatabases.&lt;/P&gt;&lt;P&gt;I don't know how many layers you're working with and if this is at all feasible, but if you'd rather just brute-force it, you could still&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Export the GDB to shapefiles&lt;/LI&gt;&lt;LI&gt;Load the shapefiles into JOSM using the OpenData plugin&lt;/LI&gt;&lt;LI&gt;Merge the resulting layers into a single data layer&lt;/LI&gt;&lt;LI&gt;Save As → some_file.osm&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have done this process in the past, working with some of our Open Data layers that we wanted to convert to an OSM format for importing / updloading to the OSM database. It was not &lt;EM&gt;too&lt;/EM&gt; tedious.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-geodatabase-to-osm/m-p/1065967#M61312</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-08T13:21:41Z</dc:date>
    </item>
  </channel>
</rss>

