<?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: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: &amp;quot;not authorized&amp;quot; in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1275364#M8386</link>
    <description>&lt;P&gt;&lt;SPAN&gt;It's a shame that Beekeeper Studio wasn't able to load the SQLite extension, especially since I paid money for Beekeeper Studio to use it for this very purpose.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit:&lt;/P&gt;&lt;P&gt;I reported the issue to BeekeeperStudio Support. They said:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Beekeeper Studio has to bundle the SQLite libraries, so I'm not sure of the process of loading an extension (it does come with a few extensions pre-loaded).&lt;/P&gt;&lt;P&gt;I'm sure it's possible, but need to investigate.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Apr 2023 08:45:17 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-04-09T08:45:17Z</dc:date>
    <item>
      <title>Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1273994#M8371</link>
      <description>&lt;P&gt;I want to use ST_GEOMETRY functions in SQL queries in a ArcGIS Pro 3.1 mobile geodatabase (Windows).&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-mobile-gdb/enable-stgeometry-extension-for-sql.htm" target="_self"&gt;Load ST_Geometry to a mobile geodatabase for SQL access&lt;/A&gt; docs say:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Load the ST_Geometry library.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;This example loads the ST_Geometry library to an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SQLite&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;database on a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Microsoft Windows&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;computer:&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;SELECT &lt;SPAN class=""&gt;load_extension&lt;/SPAN&gt;(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;'stgeometry_sqlite.dll'&lt;/SPAN&gt;,&lt;SPAN class=""&gt;'SDE_SQL_funcs_init'&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Here's what I've tried:&lt;/P&gt;&lt;P&gt;I downloaded the .DLL from MyEsri:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1680248394378.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66906iA87BB8011AEE2A85/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1680248394378.png" alt="Bud_0-1680248394378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using&amp;nbsp;&lt;A href="https://www.beekeeperstudio.io/" target="_blank" rel="noopener"&gt;Beekeeper Studio&lt;/A&gt; SQL client, I connected to the mobile geodatabase and tried to run this SQL statement:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;SELECT &lt;SPAN class=""&gt;load_extension&lt;/SPAN&gt;(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;'stgeometry_sqlite.dll'&lt;/SPAN&gt;,&lt;SPAN class=""&gt;'SDE_SQL_funcs_init'&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1680248579079.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/66907i25A13F5BA99159D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1680248579079.png" alt="Bud_1-1680248579079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I get an error:&lt;/P&gt;&lt;PRE&gt;not authorized&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Anyone know how I can get around that error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 17:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1273994#M8371</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-04T17:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274320#M8372</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, try specifying the full path of where the file is.&lt;/P&gt;&lt;P&gt;(i.e -' C:\desktop\stgeometry_sqlite.dll' )&lt;/P&gt;&lt;P&gt;Is this a mobile geodatabase created in Pro 3.1? If not, are you getting the same behavior is you create a new mobile geodatabase using Pro 3.1?&lt;/P&gt;&lt;P&gt;Marlon&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 23:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274320#M8372</guid>
      <dc:creator>MarlonAmaya</dc:creator>
      <dc:date>2023-03-31T23:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274356#M8377</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/30653"&gt;@MarlonAmaya&lt;/a&gt;&amp;nbsp;Thanks for the suggestions.&lt;/P&gt;&lt;P&gt;I tried using the full path, but unfortunately I got the same error.&lt;/P&gt;&lt;P&gt;Yes, the&amp;nbsp;&lt;SPAN&gt;mobile geodatabase was created in Pro 3.1.0.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1680322720041.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67006i792FC5873B812548/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1680322720041.png" alt="Bud_0-1680322720041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tried restarting my computer and creating a new mobile geodatabase. I get the same error, whether I use the full .dll path or just the .dll name.&lt;/P&gt;&lt;P&gt;I actually did a different test where I replaced the proper text arguments with 'fake text', just to see if I'd get a different error or not:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1680323282615.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67007i1E681DA7FF998BC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1680323282615.png" alt="Bud_1-1680323282615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get the same error.&lt;/P&gt;&lt;P&gt;So I guess that means the error is caused by the mobile GDB&amp;nbsp;&lt;U&gt;SQLite database&lt;/U&gt;, possibly indicating that extensions are&amp;nbsp;&lt;U&gt;disabled&lt;/U&gt; in the SQLite database? So the problem isn't caused by the .dll or ST_GEOMETRY.&lt;/P&gt;&lt;P&gt;Does that sound right?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 04:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274356#M8377</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-01T04:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274728#M8381</link>
      <description>&lt;P&gt;Hi&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I agree with you, it does not sound like there is an issue with the file. There could be something going on with the connection the the mobile database. Maybe a driver issue?&amp;nbsp; I went ahead and tested on a 3.1 mobile geodatabase and it worked with full path. I am using DBeaver and making a SQLite connection prior to running the query.&lt;/P&gt;&lt;P&gt;Marlon&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 15:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1274728#M8381</guid>
      <dc:creator>MarlonAmaya</dc:creator>
      <dc:date>2023-04-03T15:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1275064#M8384</link>
      <description>&lt;P&gt;It worked with DBeaver! Thanks.&lt;/P&gt;&lt;P&gt;For what it's worth, DBeaver popped up this message,&amp;nbsp;&lt;EM&gt;"SQLite driver files are missing."&lt;/EM&gt;&amp;nbsp;&lt;BR /&gt;So I downloaded the drivers using DBeaver.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1680574710731.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67148i11DD2305E9DA15F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1680574710731.png" alt="Bud_1-1680574710731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Like you said, I used the &lt;U&gt;full path&lt;/U&gt; to the location where I downloaded the .DLL (64-bit):&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT load_extension('&lt;STRONG&gt;C:\SQLite\Windows64\&lt;/STRONG&gt;stgeometry_sqlite.dll','SDE_SQL_funcs_init');&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Then, as the docs suggest:&amp;nbsp;&lt;EM&gt;"Call the CreateOGCTables function to add ST_Geometry tables to the database."&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;SELECT CreateOGCTables();&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Now, I'm able to run &lt;U&gt;&lt;EM&gt;SQL queries that use ST_GEOMETRY functions&lt;/EM&gt;&lt;/U&gt; on the mobile geodatabase:&lt;/P&gt;&lt;PRE&gt;   SELECT objectid
    FROM (SELECT ply.objectid,
                 row_number() over(partition by ply.objectid order by null) rn
            FROM ply
      CROSS JOIN pnt
           WHERE st_intersects(ply.shape, pnt.shape) = 1
         )
   WHERE rn = 1&lt;/PRE&gt;&lt;P&gt;Query source: &lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/sdo-geometry-functions-are-20x-faster-than-sde-st/m-p/1275061/highlight/true#M35581" target="_self"&gt;Spatial Query Benchmarking&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ideas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/clarify-the-docs-load-st-geometry-extension-to/idi-p/1275068" target="_self"&gt;Clarify the docs: Load ST_Geometry extension to mobile GDB — Use full path of .DLL&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/enable-st-geometry-in-mobile-geodatabase-using-gp/idi-p/1274357" target="_self"&gt;Enable ST_GEOMETRY in mobile geodatabase using GP Tool&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 04 Apr 2023 17:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1275064#M8384</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-04T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Load ST_GEOMETRY .dll extension into SQLite/mobile geodatabase — Error: "not authorized"</title>
      <link>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1275364#M8386</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It's a shame that Beekeeper Studio wasn't able to load the SQLite extension, especially since I paid money for Beekeeper Studio to use it for this very purpose.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit:&lt;/P&gt;&lt;P&gt;I reported the issue to BeekeeperStudio Support. They said:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Beekeeper Studio has to bundle the SQLite libraries, so I'm not sure of the process of loading an extension (it does come with a few extensions pre-loaded).&lt;/P&gt;&lt;P&gt;I'm sure it's possible, but need to investigate.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 08:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/load-st-geometry-dll-extension-into-sqlite-mobile/m-p/1275364#M8386</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-04-09T08:45:17Z</dc:date>
    </item>
  </channel>
</rss>

