<?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: SQLite Tables to File Geodatabase Feature Classes in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613665#M95718</link>
    <description>&lt;P&gt;Thank you all for your replies.&lt;/P&gt;&lt;P&gt;I ended up using ArcPy. There is a field in the table called geom that is a "blob" type. I extracted the blob to bytes and used ArcPy to convert FromWKB which produces a Geometry object. I could then reconstruct the Feature Class in a File Geodatabase.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

## path to SQLite Table
sqlite_fc = "path/to/sqlite/fc_name"

## Path to pre-prepared Feature Class
out_fc = "path/to/output_gdb/fc_name"

## open up an InsertCursor for the out_fc
with arcpy.da.InsertCursor(out_fc, ["name", "SHAPE@"]) as i_cursor:
    ## use the SearchCursor on the sqlite_fc
    with arcpy.da.SearchCursor(sqlite_fc, ["name", "geom"]) as s_cursor:
        ## for each record
        for row in s_cursor:
            ## get the blob and convert to Geometry object
            geom = arcpy.FromWKB(row[1].tobytes())
            ## insert into the out_fc
            i_cursor.insertRow([row[0], geom])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 15:04:48 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-05-12T15:04:48Z</dc:date>
    <item>
      <title>SQLite Tables to File Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613210#M95660</link>
      <description>&lt;P&gt;I have received an SQLite database that is a bit different than what I am used to. It seems that the data is in tables rather that "feature classes", see image below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clubdebambos_0-1746795547649.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131864i4633476A858F60B9/image-size/small?v=v2&amp;amp;px=200" role="button" title="Clubdebambos_0-1746795547649.png" alt="Clubdebambos_0-1746795547649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was expecting more like the below for example...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clubdebambos_1-1746795574755.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131865i9758959AE9E210AC/image-size/small?v=v2&amp;amp;px=200" role="button" title="Clubdebambos_1-1746795574755.png" alt="Clubdebambos_1-1746795574755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At a guess, it seems that the data is in the first table and the the other two help define geometry and srs for that table.&lt;/P&gt;&lt;P&gt;My usage of SQLite is limited. Has anyone experienced the above and have a solution for me for how to extract as a feature class?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Glen&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 13:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613210#M95660</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-05-09T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQLite Tables to File Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613402#M95679</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;I would check with the source of&amp;nbsp;&lt;SPAN&gt;SQLite database on GIS format. Looks like a non-ArcGIS format; once you know the format, there should be some conversion tools for ArcGIS. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it is a proprietary format, figuring out the relationship between relational tables to build the spatial objects could be tricky and not worth your time.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 19:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613402#M95679</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2025-05-09T19:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQLite Tables to File Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613479#M95692</link>
      <description>&lt;P&gt;That SQLite db looks like a&amp;nbsp;spatialite DB which is something &lt;A href="https://gdal.org/en/stable/drivers/vector/sqlite.html#regular-sqlite-databases" target="_self"&gt;GDAL/OGR can read&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The arcgispro-py3 env includes the GDAL/OGR (osgeo.gdal / osgeo.ogr) library, so may have the GDAL commandline tools (I'm not at my work computer, so can't check).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have &lt;A href="https://gdal.org/en/stable/drivers/vector/sqlite.html#regular-sqlite-databases" target="_self"&gt;og2ogr&lt;/A&gt; available, you could convert the SQLite DB to a File GeoDatabase with something like (untested):&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;ogr2ogr -of OpenFileGDB output.gdb input.sqlite&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 00:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613479#M95692</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2025-05-11T00:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQLite Tables to File Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613491#M95695</link>
      <description>&lt;P&gt;If you are able to post any of the data, that would help community members provide more in-depth responses.&amp;nbsp; If you can't share any of the data, can you truncate the tables and at least share an empty SQLite package that has the schema?&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 16:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613491#M95695</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-05-10T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQLite Tables to File Geodatabase Feature Classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613665#M95718</link>
      <description>&lt;P&gt;Thank you all for your replies.&lt;/P&gt;&lt;P&gt;I ended up using ArcPy. There is a field in the table called geom that is a "blob" type. I extracted the blob to bytes and used ArcPy to convert FromWKB which produces a Geometry object. I could then reconstruct the Feature Class in a File Geodatabase.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

## path to SQLite Table
sqlite_fc = "path/to/sqlite/fc_name"

## Path to pre-prepared Feature Class
out_fc = "path/to/output_gdb/fc_name"

## open up an InsertCursor for the out_fc
with arcpy.da.InsertCursor(out_fc, ["name", "SHAPE@"]) as i_cursor:
    ## use the SearchCursor on the sqlite_fc
    with arcpy.da.SearchCursor(sqlite_fc, ["name", "geom"]) as s_cursor:
        ## for each record
        for row in s_cursor:
            ## get the blob and convert to Geometry object
            geom = arcpy.FromWKB(row[1].tobytes())
            ## insert into the out_fc
            i_cursor.insertRow([row[0], geom])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 15:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sqlite-tables-to-file-geodatabase-feature-classes/m-p/1613665#M95718</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-05-12T15:04:48Z</dc:date>
    </item>
  </channel>
</rss>

