<?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: Extract By Attributes failing - question about correct SQL input for raster data in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315927#M4419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply - I will be giving this a try too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 18:33:44 GMT</pubDate>
    <dc:creator>KaraJacobacci</dc:creator>
    <dc:date>2015-10-06T18:33:44Z</dc:date>
    <item>
      <title>Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315919#M4411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to extract only a certain value from a raster and display that as a new layer - I'm working with an Aspect raster derived from a DEM and want to select only Southwest (Class Value = 6) facing cells for display in a new layer.&lt;/P&gt;&lt;P&gt;I'm using the Extract by Attributes tool under the Spatial Analyst set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input raster is my aspect raster, for the SQL builder I was trying the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CLASS VALUE" = '6' (class value is a field that comes up when using the Identify tool on the layer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't complete the process and gives me error 999999 [error executing function]&lt;/P&gt;&lt;P&gt;The Table was not Found&lt;/P&gt;&lt;P&gt;A column was specified that does not exist&lt;/P&gt;&lt;P&gt;Cannot acquire a lock&lt;/P&gt;&lt;P&gt;No Spatial reference exists, &lt;BR /&gt;Error 010213&lt;/P&gt;&lt;P&gt;Error 010325&lt;/P&gt;&lt;P&gt;Error 010067&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why it won't complete/what steps I need to take to provide whatever information is missing? I have used the SQL builder a lot for vector data but not on raster data without an attribute table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 21:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315919#M4411</guid>
      <dc:creator>KaraJacobacci</dc:creator>
      <dc:date>2015-10-05T21:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315920#M4412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you type any of that expression?&lt;/P&gt;&lt;P&gt;I would check the query in the Raster calculator first&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/raster-calculator.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/how-raster-calculator-works.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/how-raster-calculator-works.htm"&gt;How Raster Calculator works—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I you are using the raster calculator, select the field, equality sign and value from what is provided ...typing is not preferred&lt;/P&gt;&lt;P&gt;Sadly, there still exists a misnomer in equality checks that aren't standard.&amp;nbsp; In some places = is used, in others ==.&amp;nbsp; the latter is prefered, since = mean 'assignment' in most languages (of consequence)&lt;/P&gt;&lt;P&gt;If you are coding, check &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/python/specifying-a-query.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/python/specifying-a-query.htm"&gt;Specifying a query in Python—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 21:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315920#M4412</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-05T21:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315921#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I did type the expression out (I'm aware of the pitfalls with typing instead of selecting from the lists... grrr) and I was wondering if that was the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't fully understand the raster calculator - i can select the raster of consequence (aspect_dem14) but I do not understand what to choose from the right side column. Within the raster, there's a field called Class Value but I don't see where to select it. I've never used this tool before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 21:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315921#M4413</guid>
      <dc:creator>KaraJacobacci</dc:creator>
      <dc:date>2015-10-05T21:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315922#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;screen shot of the raster table?&amp;nbsp; what type of raster?&amp;nbsp; esri integer grid perhaps?&amp;nbsp; ​&lt;/P&gt;&lt;P&gt;If it is an integer grid as described, then you should just be able to query the raster like&lt;/P&gt;&lt;P&gt;'myraster' == 6 &lt;/P&gt;&lt;P&gt;since integer grids will contain a Value field and a Count field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 23:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315922#M4414</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-05T23:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315923#M4415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="raster_aspect.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/129793_raster_aspect.png" style="width: 620px; height: 323px;" /&gt;&lt;BR /&gt;here's a screenshot. it's the 32 bit floating point type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 23:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315923#M4415</guid>
      <dc:creator>KaraJacobacci</dc:creator>
      <dc:date>2015-10-05T23:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315924#M4416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhhh it isn't reclassed...as I had assumed...which is what you have to do.&amp;nbsp; the quickest is to use reclassification and reclass everything &amp;lt; 202.5 to 0 and &amp;gt; 247 to 0 and between to 1, or you could query using 'Aspect_dem14' &amp;gt; 202.5 and 'Aspect_dem14' &amp;lt;247.5&amp;nbsp;&amp;nbsp; of course not typing and I am pretty sure it is 'and' if it is there or perhaps &amp;amp; but think that may be bit-wise and.&amp;nbsp; Sorry I can't check...on an Arc-less iThingy​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 23:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315924#M4416</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-05T23:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315925#M4417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reclassification I think has solved my problem!! I was doing something similar to what you typed out in the Raster Calculator but I keep getting a syntax error. I think I'll stick with the reclassification!&lt;/P&gt;&lt;P&gt;Thanks a bunch!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 23:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315925#M4417</guid>
      <dc:creator>KaraJacobacci</dc:creator>
      <dc:date>2015-10-05T23:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315926#M4418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I don't fully understand the raster calculator - i can select the raster of consequence (aspect_dem14) but I do not understand what to choose from the right side column.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is totally a job for Raster Calculator and the Con tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14440909555955444 jive_text_macro" data-renderedposition="153_8_912_16" jivemacro_uid="_14440909555955444"&gt;&lt;SPAN style="font-family: monospace;"&gt;Con("Aspect_dem14" &amp;gt; 202.5 &amp;amp; "Aspect_dem14" &amp;lt; 247.5, 1, 0)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;If you want to use SQL syntax you can but for continuous data I don't recommend it. (I find doing the straight Python a lot more flexible and easier to understand.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14440913550553627 jive_text_macro" data-renderedposition="253_8_912_16" jivemacro_uid="_14440913550553627"&gt;&lt;P&gt;Con("Aspect_dem14", 1, 0, "VALUE &amp;gt; 202.5 AND VALUE &amp;lt; 247.5")&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 00:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315926#M4418</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-10-06T00:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract By Attributes failing - question about correct SQL input for raster data</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315927#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply - I will be giving this a try too!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 18:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/extract-by-attributes-failing-question-about/m-p/315927#M4419</guid>
      <dc:creator>KaraJacobacci</dc:creator>
      <dc:date>2015-10-06T18:33:44Z</dc:date>
    </item>
  </channel>
</rss>

