<?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: ST_Raster Trouble - SQL SERVER in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874612#M6459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supriya,&lt;/P&gt;&lt;P&gt;it did not work.&lt;/P&gt;&lt;P&gt;I installed the old ArcSDE installation files (10.2.2) but the result is the same.&amp;nbsp;I did everything as sysadmin (os and sql server).&lt;/P&gt;&lt;P&gt;I Also did the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I tried to use older libst_raster_sql.dll and createAssembly.sql (coming from ArcGIS 10.4 installation instead of 10.5.1). For consistency I used 10.4 client &amp;nbsp;when using "Create Raster Type" and also the geodatabase was 10.4 schema (even if probably does not make any difference)&lt;/LI&gt;&lt;LI&gt;I double checked .NET requirements on the server and they should be OK especially because there is an installation of ArcGIS Server (4.5 or superior required)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SQL Server 2014 on Windows Server 2012 R2 Standard. The server (staging machine) also has an installation of ArcGIS Desktop &amp;amp; Server 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm that what I'm experiencing is not a bug of the ST_Raster assembly ? Consider that the installation seems succesfull (I get 1000 from&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;st_raster_util_getVersion&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;()) and I'm able to load a raster as ST_Raster (importing it from arcgis using a conf keyword) and using properties of the ST_Raster. When I try to go for pixel data I get the described trouble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;Alberto&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 08:47:23 GMT</pubDate>
    <dc:creator>AlbertoAloe</dc:creator>
    <dc:date>2017-09-12T08:47:23Z</dc:date>
    <item>
      <title>ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874608#M6455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi guys.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm doing some testing with ST_Raster in SQL server 2016.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Installation was fine. I follow the exact procedure described in the help document (including checking system requirements for the server) and, as a result, &amp;nbsp;I was able to load a raster from arcgis &amp;nbsp;into the geodatabase after altering the configuration file (RASTER_STORAGE).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;In SSMS I see the table with the ST_Raster column and I'm able to make some querying. However, when I try to create a table (or a variable ) with ST_PixelData I get an error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;If I run...&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;CREATE TABLE pixels (pdata dbo.ST_PixelData, row_id int);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;INSERT INTO pixels(pdata , row_id) SELECT RASTER.getPixelData('level=1') , 1 FROM [dbo].[MEAN2008]&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I get the following error....&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;Msg 6522, Level 16, State 1, Line 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;A .NET Framework error occurred during execution of user-defined routine or aggregate "ST_Raster":&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;System.DllNotFoundException: Unable to load DLL 'pe.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;System.DllNotFoundException:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;at ESRI_ArcSDE.STRasterUtil.SdeRasterAPI.pe_coordsys_from_string(String __unnamed000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;at ESRI_ArcSDE.STRasterUtil.ST_Raster_IO.getCoordSys(Int32 rastercolumnID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;at ST_RasterCommon.exportCommon(ST_RasterCommon* , SubsetParam* __unnamed000, SByte* compression)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;at ST_RasterSS.getPixelData(ST_RasterSS* , Byte* A_0, Byte* A_1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000; border: 0px; font-weight: inherit;"&gt;at ESRI_ArcSDE.STRasterType.ST_Raster.getPixelData(SqlString param)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;... implying that there is something missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;I double checked all the requirements and everything seems fine including .NET version in the server. I got the&amp;nbsp;libst_raster_sql.dll from the ArcGIS 10.5.1 installation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;I'd appreciate if somebody had a hint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; border: 0px; font-weight: inherit;"&gt;Alberto&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874608#M6455</guid>
      <dc:creator>AlbertoAloe</dc:creator>
      <dc:date>2017-09-08T08:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874609#M6456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you run the confirm ST_Raster installation query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;dbo&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: blue;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;sde&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;st_raster_util_getVersion&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/install-st-raster-sqlserver.htm#ESRI_SECTION1_9291609C07CE42F19119E60ABFFA4C4D" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/install-st-raster-sqlserver.htm#ESRI_SECTION1_9291609C07CE42F19119E60ABFFA4C4D"&gt;Install ST_Raster in SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Did you get the same error as above or did it return some results?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;-Supriya&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 17:58:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874609#M6456</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-09-08T17:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874610#M6457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supriya,&lt;/P&gt;&lt;P&gt;when running that query I get 1000 without any error.&lt;/P&gt;&lt;P&gt;I was wondering if the cause of trouble may be the fact that I'm a sysadmin at sql server level but not at os level and, as a result, something went wrong in the installation . I assumed that the requirement was being a sysadmin at sql server level.&lt;/P&gt;&lt;P&gt;What do you think ?&lt;/P&gt;&lt;P&gt;I'll check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 08:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874610#M6457</guid>
      <dc:creator>AlbertoAloe</dc:creator>
      <dc:date>2017-09-11T08:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874611#M6458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you might be running into the following bug:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA5NjU2MA==" title="http://support.esri.com/en/bugs/nimbus/QlVHLTAwMDA5NjU2MA=="&gt;BUG-000096560: The ST_Raster functions, getValue and getValueLoc, r..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bug specifically states the libcompress_sql.dll is missing, but I believe the pe.dll is also part of the ArcSDE installation files and might be necessary to run some of the ST_Raster functions. Could you try the workaround noted in the bug documentation above to see if that helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Supriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874611#M6458</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-09-11T14:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874612#M6459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supriya,&lt;/P&gt;&lt;P&gt;it did not work.&lt;/P&gt;&lt;P&gt;I installed the old ArcSDE installation files (10.2.2) but the result is the same.&amp;nbsp;I did everything as sysadmin (os and sql server).&lt;/P&gt;&lt;P&gt;I Also did the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I tried to use older libst_raster_sql.dll and createAssembly.sql (coming from ArcGIS 10.4 installation instead of 10.5.1). For consistency I used 10.4 client &amp;nbsp;when using "Create Raster Type" and also the geodatabase was 10.4 schema (even if probably does not make any difference)&lt;/LI&gt;&lt;LI&gt;I double checked .NET requirements on the server and they should be OK especially because there is an installation of ArcGIS Server (4.5 or superior required)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SQL Server 2014 on Windows Server 2012 R2 Standard. The server (staging machine) also has an installation of ArcGIS Desktop &amp;amp; Server 10.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you confirm that what I'm experiencing is not a bug of the ST_Raster assembly ? Consider that the installation seems succesfull (I get 1000 from&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;st_raster_util_getVersion&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;()) and I'm able to load a raster as ST_Raster (importing it from arcgis using a conf keyword) and using properties of the ST_Raster. When I try to go for pixel data I get the described trouble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #ffffff; border: 0px;"&gt;Alberto&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874612#M6459</guid>
      <dc:creator>AlbertoAloe</dc:creator>
      <dc:date>2017-09-12T08:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874613#M6460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you installed the 10.2.2 ArcSDE files, did you make sure to restart the SQL Server service? Then try the SQL queries again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following queries on a SQL Server 2014 instance with ST_Raster 10.4 installed and it worked as expected.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CREATE TABLE pixels (pdata sde.ST_PixelData, row_id int);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO pixels(pdata)&lt;BR /&gt;SELECT RASTER.getPixelData('level=1')&lt;BR /&gt;FROM [sde].[XXX];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Supriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874613#M6460</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-09-12T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: ST_Raster Trouble - SQL SERVER</title>
      <link>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874614#M6461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supriya,&lt;/P&gt;&lt;P&gt;I forgot to restart it !!&lt;/P&gt;&lt;P&gt;I did &amp;nbsp;it and now it works. Thanks !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/st-raster-trouble-sql-server/m-p/874614#M6461</guid>
      <dc:creator>AlbertoAloe</dc:creator>
      <dc:date>2017-09-12T15:46:30Z</dc:date>
    </item>
  </channel>
</rss>

