<?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: Question about clipping parcels from raster in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417911#M82655</link>
    <description>&lt;P&gt;I spoke with Esri tech support and they recommended the "export raster" tool to rename and choose the file type. It worked!&lt;/P&gt;&lt;P&gt;Thank you for your suggestion, Dan. Much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 05:10:37 GMT</pubDate>
    <dc:creator>MahaTannous</dc:creator>
    <dc:date>2024-05-02T05:10:37Z</dc:date>
    <item>
      <title>Question about clipping parcels from raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417443#M82606</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;First of all, thanks for any input you can provide.&lt;/P&gt;&lt;P&gt;I'm very, very new to Python and I have a two-part challenge. I have to clip residential parcels from a raster, save those parcels under their APN number, then buffer the structure on each parcel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Decided to do the clipping first and put a Python code together. Although the .tif files populate in my gdb folder, I can't open them. Could those files be corrupted? They range between 1 and 2 MB, but I can't seem to open them in any software.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also been unsuccessful at running the same script while using jpeg instead of tif.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set environment settings&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.workspace = &lt;SPAN&gt;r"C:\Users\Projects\FINALPython"&lt;BR /&gt;&lt;/SPAN&gt;arcpy.env.overwriteOutput = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Define paths to feature classes and raster layer&lt;BR /&gt;&lt;/SPAN&gt;parcels_fc = &lt;SPAN&gt;"Parcels_Clip"&lt;BR /&gt;&lt;/SPAN&gt;raster_layer = &lt;SPAN&gt;"RGB_FBRanch 9.6.23.tif"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Get APN field name&lt;BR /&gt;&lt;/SPAN&gt;apn_field = arcpy.ListFields(parcels_fc, &lt;SPAN&gt;"APN"&lt;/SPAN&gt;)[&lt;SPAN&gt;0&lt;/SPAN&gt;].name&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create a search cursor to iterate through parcels and clip the raster layer&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;arcpy.da.SearchCursor(parcels_fc, [&lt;SPAN&gt;"SHAPE@"&lt;/SPAN&gt;, apn_field]) &lt;SPAN&gt;as &lt;/SPAN&gt;cursor:&lt;BR /&gt;    &lt;SPAN&gt;for &lt;/SPAN&gt;row &lt;SPAN&gt;in &lt;/SPAN&gt;cursor:&lt;BR /&gt;        &lt;SPAN&gt;# Define output path for clipped raster&lt;BR /&gt;&lt;/SPAN&gt;        apn_number = row[&lt;SPAN&gt;1&lt;/SPAN&gt;]&lt;BR /&gt;        clipped_output = arcpy.CreateUniqueName(&lt;SPAN&gt;"clipped_{}.tif"&lt;/SPAN&gt;.format(apn_number))&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;# Clip raster layer using individual parcel&lt;BR /&gt;&lt;/SPAN&gt;        arcpy.management.Clip(raster_layer, &lt;SPAN&gt;"#"&lt;/SPAN&gt;, clipped_output, row[&lt;SPAN&gt;0&lt;/SPAN&gt;], &lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;"ClippingGeometry"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Thanks so much for your input..&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 09:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417443#M82606</guid>
      <dc:creator>MahaTannous</dc:creator>
      <dc:date>2024-05-01T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question about clipping parcels from raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417447#M82607</link>
      <description>&lt;P&gt;RGB_FBRanch 9.6.23.tif&lt;/P&gt;&lt;P&gt;make a copy of one of the images and rename it so it doesn't have spaces or punctuation...can it be added to a map now?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 09:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417447#M82607</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-05-01T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about clipping parcels from raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417911#M82655</link>
      <description>&lt;P&gt;I spoke with Esri tech support and they recommended the "export raster" tool to rename and choose the file type. It worked!&lt;/P&gt;&lt;P&gt;Thank you for your suggestion, Dan. Much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 05:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417911#M82655</guid>
      <dc:creator>MahaTannous</dc:creator>
      <dc:date>2024-05-02T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question about clipping parcels from raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417963#M82658</link>
      <description>&lt;P&gt;no problem&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 08:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1417963#M82658</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-05-02T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about clipping parcels from raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1442847#M83148</link>
      <description>&lt;P&gt;Hello again Dan,&lt;/P&gt;&lt;P&gt;I finally succeeded in producing a python script for clipping raster into multiple parcels, but my final output has to have buffer lines of 50 and 100-feet around each structure on each parcel. I'm attaching an image of the raster with the buffer and parcel lines,&lt;/P&gt;&lt;P&gt;I would appreciate any suggestions you may have on this subject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Maha&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parcels with building buffer lines" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103851i7C3358509FC34DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Parcel Snip.png" alt="Parcels with building buffer lines" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parcels with building buffer lines&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 20:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/question-about-clipping-parcels-from-raster/m-p/1442847#M83148</guid>
      <dc:creator>MahaTannous</dc:creator>
      <dc:date>2024-05-11T20:15:36Z</dc:date>
    </item>
  </channel>
</rss>

