<?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 Clip by Raster Value? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/clip-by-raster-value/m-p/84796#M6684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to clip a points file based upon a raster VALUE using script? The code below works to clip all points within 'rasterFile'. But rasterFile contains values of both 1 and 0, and I would like to specifically clip where rasterFile has a value of 1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcgisscripting
gp = arcgisscripting.create()

gp.Clip_analysis("points", "rasterFile", "outputFile")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2011 22:02:22 GMT</pubDate>
    <dc:creator>MichaelRyan3</dc:creator>
    <dc:date>2011-11-15T22:02:22Z</dc:date>
    <item>
      <title>Clip by Raster Value?</title>
      <link>https://community.esri.com/t5/python-questions/clip-by-raster-value/m-p/84796#M6684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to clip a points file based upon a raster VALUE using script? The code below works to clip all points within 'rasterFile'. But rasterFile contains values of both 1 and 0, and I would like to specifically clip where rasterFile has a value of 1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcgisscripting
gp = arcgisscripting.create()

gp.Clip_analysis("points", "rasterFile", "outputFile")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 22:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clip-by-raster-value/m-p/84796#M6684</guid>
      <dc:creator>MichaelRyan3</dc:creator>
      <dc:date>2011-11-15T22:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Clip by Raster Value?</title>
      <link>https://community.esri.com/t5/python-questions/clip-by-raster-value/m-p/84797#M6685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1867&amp;amp;pid=1865&amp;amp;topicname=Make_Feature_Layer_%28Data_Management%29"&gt;feature layer&lt;/A&gt;&lt;SPAN&gt; from the 'rasterfile' with a query specifying '"VALUE" = 1'.&amp;nbsp; Then clip the points from the feature layer rather than the rasterfile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 10:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clip-by-raster-value/m-p/84797#M6685</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2011-11-16T10:00:56Z</dc:date>
    </item>
  </channel>
</rss>

