<?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: Feed model with raster files, a shapefile clip feature, a layer file - output to in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528501#M17621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Harry,&lt;BR /&gt;&lt;BR /&gt;Try the attached script tool.&amp;nbsp; I just modified the one I made a few weeks ago to add the extra steps you wanted. I saved it as a 10.0 toolbox so it should work for you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is awesome! I hope others will find it useful! Did you build it witp ArcPy or ModelBuilder, as I can't open it as a model?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2013 17:44:15 GMT</pubDate>
    <dc:creator>EjayLai</dc:creator>
    <dc:date>2013-05-28T17:44:15Z</dc:date>
    <item>
      <title>Feed model with raster files, a shapefile clip feature, a layer file - output to kmz?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528499#M17619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The challenge is to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Clip all the rasters in a folder with a polygon shapefiles&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -rasters will be selected based on a field called tileName in the shapefile that contains all the raster names, e.g. 1955_30_146.tif;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Apply symbology from a saved layer file(.lyr);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Save the clipped rasters and export them to kmz files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See below for supporting info if you would like to jump in to tackle the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Background info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a. A folder contains all the GeoTIFs - scanned and georeferenced air photos rasters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b. A manually created polygon shapefile - outlining the areas and removing overlapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c. The attribute table of the polygon shapefile has all file names of the GeoTIFs( "tileName=1955_30_146.tif").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;d. Software: ArcGIS Desktop 10, Arcview License with Spatial Analysis Extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here how it works in ArcMap for a single process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. In ArcMap, select a polygon in the shapefile and use that to clip a related raster from a folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -the shapefile has a field call tilename which lists the names of all the TIF rasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -so the tilename field is used to determine an input raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The clipped raster will be added to the table of content; as its colour range have changed, the image becomes brighter!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Apply sympology to the raster from a saved layer files (.lyr) so that the colour matches that prior to that being clipped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -save the raster with the new symbology?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Export raster to a KML file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can a model be built with ModelBuilder to allow user to feed the data with a folder(TIF raster files), a polygon shapefile, and a layer files(apply same symbology to all rasters), and output locations? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once this done, I imagine it will be possible to export the model to a python script which can be scheduled to run with window's task scheduler, for example. It is an extended task to the answer from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/84698-With-info-from-selected-feature-search-a-folder-to-find-a-raster-for-Clip-Tool" rel="nofollow" target="_blank"&gt;this post&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feel free to ask where I didn't make myself understood.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help will be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 13:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528499#M17619</guid>
      <dc:creator>EjayLai</dc:creator>
      <dc:date>2013-05-28T13:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Feed model with raster files, a shapefile clip feature, a layer file - output to</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528500#M17620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Harry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try the attached script tool.&amp;nbsp; I just modified the one I made a few weeks ago to add the extra steps you wanted. I saved it as a 10.0 toolbox so it should work for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 14:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528500#M17620</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-28T14:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Feed model with raster files, a shapefile clip feature, a layer file - output to</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528501#M17621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Harry,&lt;BR /&gt;&lt;BR /&gt;Try the attached script tool.&amp;nbsp; I just modified the one I made a few weeks ago to add the extra steps you wanted. I saved it as a 10.0 toolbox so it should work for you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is awesome! I hope others will find it useful! Did you build it witp ArcPy or ModelBuilder, as I can't open it as a model?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 17:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528501#M17621</guid>
      <dc:creator>EjayLai</dc:creator>
      <dc:date>2013-05-28T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Feed model with raster files, a shapefile clip feature, a layer file - output to</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528502#M17622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I authored the tool in straight Python...You can see the source code if you right click on the script tool and hit Edit.&amp;nbsp; Or you can open up the ClipRasters.py script.&amp;nbsp; Most of the tools I used are ArcGIS tools that can be done in ModelBuilder with the exception of the SearchCursor.&amp;nbsp; That is only available in arcpy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 18:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528502#M17622</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-28T18:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Feed model with raster files, a shapefile clip feature, a layer file - output to</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528503#M17623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I authored the tool in straight Python...You can see the source code if you right click on the script tool and hit Edit.&amp;nbsp; Or you can open up the ClipRasters.py script.&amp;nbsp; Most of the tools I used are ArcGIS tools that can be done in ModelBuilder with the exception of the SearchCursor.&amp;nbsp; That is only available in arcpy.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Got it thanks. I figure this can't be done through ModelBuilder. Those logic and loopings need to be done with ArcPy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 20:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/feed-model-with-raster-files-a-shapefile-clip/m-p/528503#M17623</guid>
      <dc:creator>EjayLai</dc:creator>
      <dc:date>2013-05-28T20:45:56Z</dc:date>
    </item>
  </channel>
</rss>

