<?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 Erase a polygon from a raster in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571844#M8282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to erase a series of polygons from a raster set.&amp;nbsp; I have ArcView w/Spatial Analyst version 10.0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have converted the polygon to a raster and tried to subtract the two and have tried this code to no avail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull( Not IsNull( [PolyRaster] ), [MyRaster] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marcus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Oct 2010 14:55:55 GMT</pubDate>
    <dc:creator>MarcusGriswold</dc:creator>
    <dc:date>2010-10-16T14:55:55Z</dc:date>
    <item>
      <title>Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571844#M8282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to erase a series of polygons from a raster set.&amp;nbsp; I have ArcView w/Spatial Analyst version 10.0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have converted the polygon to a raster and tried to subtract the two and have tried this code to no avail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull( Not IsNull( [PolyRaster] ), [MyRaster] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marcus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 14:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571844#M8282</guid>
      <dc:creator>MarcusGriswold</dc:creator>
      <dc:date>2010-10-16T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571845#M8283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;request that you General post be moved here...do not duplicate post, it isn't good for seaches&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 22:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571845#M8283</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-10-16T22:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571846#M8284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcMap 10.&amp;nbsp; The error I received was a parsing syntax error. Maybe we can start with square one if you have time.&amp;nbsp; I have a raster and I want to erase the area of all polygons in a single shapefile from it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 00:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571846#M8284</guid>
      <dc:creator>MarcusGriswold</dc:creator>
      <dc:date>2010-10-17T00:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571847#M8285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the error I received from that code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: RasterCalculator SetNull( Not(IsNull( "protect" )), "nlcdforse" ) C:\temp\privfor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Thu Oct 21 15:08:06 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull( Not(IsNull( Raster(r"protect") )), Raster(r"nlcdforse") )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.NameError'&amp;gt;: name 'Not' is not defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (RasterCalculator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Thu Oct 21 15:08:06 2010 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marcus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 18:12:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571847#M8285</guid>
      <dc:creator>MarcusGriswold</dc:creator>
      <dc:date>2010-10-21T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571848#M8286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that Not =! ~&amp;nbsp; the latter is used by 10 and note that there is no pop-up help or tool-tips to indicate so, so use ~ in place of Not and bookmark the page Bill referenced&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 17:56:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571848#M8286</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2010-10-22T17:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571849#M8287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great - Thanks! It would be great if there were a better error associated with it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Oct 2010 22:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571849#M8287</guid>
      <dc:creator>MarcusGriswold</dc:creator>
      <dc:date>2010-10-24T22:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571850#M8288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can this be done in SOMA tool? I tried and it gave a message that "Not" is not a valid operator (also tried ~). I am using 9.3.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 13:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571850#M8288</guid>
      <dc:creator>toddsams</dc:creator>
      <dc:date>2010-12-07T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Erase a polygon from a raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571851#M8289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I needed to do something like that, in 10. But in the result I get a raster without the erased parts, witch is good, but it also cuts other parts in my case, it cuts the top in a straight horizontal line, and the right side also in a vertical straight line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/erase-a-polygon-from-a-raster/m-p/571851#M8289</guid>
      <dc:creator>RafaelFernandes2</dc:creator>
      <dc:date>2013-05-14T12:59:18Z</dc:date>
    </item>
  </channel>
</rss>

