<?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: Selecting area from raster in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497175#M7095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative approach to keep your data in raster format would be to run the &lt;EM&gt;Region Group&lt;/EM&gt; GP tool. This will create a new raster with a count field. To calculate size simply multiply the count field by the size of your pixels in m2. You are fortunate as your pixels are 1 x 1 m so your count field should be equal to your size in m2. Otherwise, if the pixel was say 30 x 30 m, then to determine size would be: Count x 900 (30x30).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then run the &lt;EM&gt;Select Layer by Attributes&lt;/EM&gt;&amp;nbsp;tool to select those groups greater than your threshold size.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 18:36:48 GMT</pubDate>
    <dc:creator>MervynLotter</dc:creator>
    <dc:date>2017-08-10T18:36:48Z</dc:date>
    <item>
      <title>Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497173#M7093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple raster (each cell size is one meter).&amp;nbsp; From the raster, I need to select areas of contiguous cells which are 50 square feet or larger.&amp;nbsp; Is there a tool which can give me the results I need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 18:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497173#M7093</guid>
      <dc:creator>AnnieCahill</dc:creator>
      <dc:date>2017-08-09T18:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497174#M7094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be a more elegant approach, but this is one&amp;nbsp;solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Assuming your raster cells are discrete values (e.g., integers, classification). Also assuming that the raster isn't huge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Convert the raster into polygons (Make sure "Simplify Polygons" isn't checked)&lt;/P&gt;&lt;P&gt;2. Once you have your polygon feature class - run a Dissolve based on the&amp;nbsp;values (Do not create multipart features)&lt;/P&gt;&lt;P&gt;3. Create a new field and calculate area in sq. ft.&lt;/P&gt;&lt;P&gt;4. Select by attribute for areas &amp;gt;50 sq. ft.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Done! But, if you need to go back to a raster for further processing (e.g., masking) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Create a field in the dissolved polygon feature flagging the polygons that are &amp;gt;50 sq. ft (e.g., those areas = 1, all others = 0)&lt;/P&gt;&lt;P&gt;6. Dissolve based on that field (Again, do not create multipart features)&lt;/P&gt;&lt;P&gt;7. Convert polygon to raster based on that field. (Make sure you set the&amp;nbsp;raster cell size to 1 m, and set the Raster Snapping in Environmental Variables to the original raster, so that the pixels line up)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 21:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497174#M7094</guid>
      <dc:creator>DavorGugolj</dc:creator>
      <dc:date>2017-08-09T21:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497175#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative approach to keep your data in raster format would be to run the &lt;EM&gt;Region Group&lt;/EM&gt; GP tool. This will create a new raster with a count field. To calculate size simply multiply the count field by the size of your pixels in m2. You are fortunate as your pixels are 1 x 1 m so your count field should be equal to your size in m2. Otherwise, if the pixel was say 30 x 30 m, then to determine size would be: Count x 900 (30x30).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then run the &lt;EM&gt;Select Layer by Attributes&lt;/EM&gt;&amp;nbsp;tool to select those groups greater than your threshold size.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497175#M7095</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2017-08-10T18:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497176#M7096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mervyn's approach is the quickest and it also has the added advantage that you can...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;perform a query first... ie identify all the public lands only for inclusion.&amp;nbsp; By querying for public lands (whatever class that happened to be) you end up with a binary raster of 0 and 1's&lt;/LI&gt;&lt;LI&gt;Regiongroup the 1's (ie public lands), determine your candidate zones that meet the size criteria.&lt;/LI&gt;&lt;LI&gt;Now!!!...the size and shape of the zones is important as well.. at this step I would use &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/zonal-geometry.htm"&gt;&lt;STRONG&gt;Zonal Geometry&lt;/STRONG&gt; &lt;/A&gt;or Zonal &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/zonal-geometry-as-table.htm"&gt;&lt;STRONG&gt;Geometry as Table&lt;/STRONG&gt;&lt;/A&gt; to get area and other shape measures.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Why bother?&amp;nbsp; there is no point having a 50 sq ft parcel of land that met a size requirement, but was 1 foot wide by 50 feet long is there?&amp;nbsp; You can look at perimeter/area ratios, thickness bounding ellipsoid parameters (a axis = b axis is a circle, hence bounding a square) or even orientation to determine the prime candidate... "I need a 50 sq ft parcel of land on a south facing slope with a width/height ratio no more than 5"&amp;nbsp; Anticipate the next question if you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497176#M7096</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-10T18:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497177#M7097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies.&amp;nbsp; I was researching the Region Group tool but I got confused about the number of neighbors option so I haven't tried it yet.&amp;nbsp; The problem I ran into with running it using Davor's suggestion is that I ended up with polygons which met the area requirement but were too narrow for a landing site.&amp;nbsp; I do need a result that's closer to a square so I'll try this tool and see if it gets me closer to what I need.&amp;nbsp; Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497177#M7097</guid>
      <dc:creator>AnnieCahill</dc:creator>
      <dc:date>2017-08-10T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497178#M7098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, we were both responding at the same time.&amp;nbsp; You are spot on about the shape issue and I will try your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497178#M7098</guid>
      <dc:creator>AnnieCahill</dc:creator>
      <dc:date>2017-08-10T18:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497179#M7099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Annie...now for the neighbour issue whether 4 or 8... I tend to run both and then do a difference between the results to see if the geometry arrangement of the cells produces any exceptionally small zone artifacts.&amp;nbsp; Neither is right or wrong... but if in doubt...&amp;nbsp; 8 is good... it looks like two circles &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497179#M7099</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-10T19:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting area from raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497180#M7100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a job for... Raster Calculator!&lt;/P&gt;&lt;P&gt;Assuming you have a landownership raster where VALUE=4 cells are public lands:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;groups &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; RegionGroup&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"landown"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sites &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SetNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ZonalGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;groups&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="string token"&gt;"VALUE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"THICKNESS"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZonalGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;groups&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="string token"&gt;"VALUE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AREA"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2500&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; groups&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:51:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/selecting-area-from-raster/m-p/497180#M7100</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T21:51:04Z</dc:date>
    </item>
  </channel>
</rss>

