<?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: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1602636#M73986</link>
    <description>&lt;P&gt;So Shaun, where is the “python 3.11.11 build” on your channel? Could you provide some more information about what you’re suggesting? I am running Pro 3.4 which seems to only allow up to 3.11.10. RTree is definitely something I would expect the arcgis python build to include&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 04:57:24 GMT</pubDate>
    <dc:creator>KevinGabelman</dc:creator>
    <dc:date>2025-04-04T04:57:24Z</dc:date>
    <item>
      <title>Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1497060#M70917</link>
      <description>&lt;P&gt;I am developing a Toolbox in ArcGIS Pro 3.3 using the usual Conda Python environment.&lt;/P&gt;&lt;P&gt;I need to manipulate a Geopackage and since ArcPy support for .gpkg is almost non-existing I have to connect to the data source as if it was a plain SQLite DB.&lt;/P&gt;&lt;P&gt;Connection works perfectly.&lt;/P&gt;&lt;P&gt;sqlite_connection = sqlite3.connect("c:\\geopackage.gpkg")&lt;/P&gt;&lt;P&gt;Also executing SQL works. To create a feature-class table I run:&lt;/P&gt;&lt;P&gt;sql =&amp;nbsp;f'''CREATE TABLE "faults" ( "fid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "geom" LINESTRING, "fault_id" MEDIUMINT);'''&lt;BR /&gt;sqlite_connection .execute(sql)&lt;/P&gt;&lt;P&gt;Then I need to create an RTree index as this is one of the requirements for a geompetry layer in a geodatabase. This is done using a virtual table as stated here:&lt;BR /&gt;&lt;A href="https://www.geopackage.org/guidance/extensions/rtree_spatial_indexes.html" target="_blank" rel="noopener"&gt;https://www.geopackage.org/guidance/extensions/rtree_spatial_indexes.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://sqlite.org/rtree.html" target="_blank" rel="noopener"&gt;https://sqlite.org/rtree.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;..but running the code:&lt;/P&gt;&lt;P&gt;sql =&amp;nbsp;f'''CREATE VIRTUAL TABLE "rtree_{table_name}_geom" USING rtree("id", "minx", "maxx", "miny", "maxy");'''&lt;BR /&gt;sqlite_connection .execute(sql)&lt;/P&gt;&lt;P&gt;will fail into a:&lt;/P&gt;&lt;P&gt;sqlite3.OperationalError: no such module: rtree&lt;/P&gt;&lt;P&gt;Any ideas how to solve this.. ..or an alternative approach for running an arcpy-enabled script?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 11:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1497060#M70917</guid>
      <dc:creator>Marco_Foi</dc:creator>
      <dc:date>2024-06-25T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1499423#M70937</link>
      <description>&lt;P&gt;This might be a bug,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/database-requirements-sqlite.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/databases/database-requirements-sqlite.htm&lt;/A&gt;&amp;nbsp;says rtree is fully supported in 3.3&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 21:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1499423#M70937</guid>
      <dc:creator>ChrisCowin_dhs</dc:creator>
      <dc:date>2024-06-28T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1499550#M70940</link>
      <description>"using" an R*Tree just requires making ordinary queries on the special tables the index poputates. There is no special need for leveraging an rtree in read mode.. ..and once it is in place, the rtree triggers will maintain it.&lt;BR /&gt;&lt;BR /&gt;So "Full support" might just mean ArcGis Pro 3.3 can detect and use the special tables of an RTree.&lt;BR /&gt;&lt;BR /&gt;Creating them is a whole other story.&lt;BR /&gt;&lt;BR /&gt;For sure the documentation is quite obscure and deceiving.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Jun 2024 01:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1499550#M70940</guid>
      <dc:creator>Marco_Foi</dc:creator>
      <dc:date>2024-06-30T01:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1593219#M73876</link>
      <description>&lt;P&gt;This issue was an oversight in how our core CPython distribution was built, where the expected extensions were not being included. It has been addressed in Pro 3.5, and can be installed into Pro 3.3 and 3.4 as well by upgrading to the upcoming Python 3.11.11 build on our channel.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 05:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1593219#M73876</guid>
      <dc:creator>Shaun-Walbridge</dc:creator>
      <dc:date>2025-03-07T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1602636#M73986</link>
      <description>&lt;P&gt;So Shaun, where is the “python 3.11.11 build” on your channel? Could you provide some more information about what you’re suggesting? I am running Pro 3.4 which seems to only allow up to 3.11.10. RTree is definitely something I would expect the arcgis python build to include&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 04:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1602636#M73986</guid>
      <dc:creator>KevinGabelman</dc:creator>
      <dc:date>2025-04-04T04:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Rtree support in SQLite3 python module of ArcGIS Pro 3.3</title>
      <link>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1603027#M73991</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215100"&gt;@KevinGabelman&lt;/a&gt;by coincidence, today is the day we flipped over the Pro 3.5 packages onto the main Esri channel. You should be able to upgrade to it, e.g. from the command line, with `conda upgrade --no-pin python`.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 04:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-rtree-support-in-sqlite3-python-module-of/m-p/1603027#M73991</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2025-04-05T04:00:28Z</dc:date>
    </item>
  </channel>
</rss>

