<?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 Fishnet Batch in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692252#M22945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to batch out grid generation(fishnet) from Landsat imagery on hundreds of files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. First is there a way to batch it out, I only need a 4x4 grid to overlay the imagery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. If possible, can the grid be of the active area of the imagery, landsat imagery has a square background of ???No Data???, this is what the grid usually reads from&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 22:31:23 GMT</pubDate>
    <dc:creator>AdamWoodard</dc:creator>
    <dc:date>2011-09-29T22:31:23Z</dc:date>
    <item>
      <title>Fishnet Batch</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692252#M22945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a way to batch out grid generation(fishnet) from Landsat imagery on hundreds of files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. First is there a way to batch it out, I only need a 4x4 grid to overlay the imagery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. If possible, can the grid be of the active area of the imagery, landsat imagery has a square background of ???No Data???, this is what the grid usually reads from&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 22:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692252#M22945</guid>
      <dc:creator>AdamWoodard</dc:creator>
      <dc:date>2011-09-29T22:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fishnet Batch</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692253#M22946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could start by converting the image to a polygon feature class. (Raster to Polygon)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Maybe reclass the image to a binary raster (image = 1, nodata = nodata) first.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This should give you a polygon of the image area: a tilted rectangle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run Feature Veticies To Point: this gives you corner points (plus some more, maybe)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run Add XY Coordinates on the point class: now the points have recorded coordinates&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a Search Cursor to find the left-most and top-most points, and grab their coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you want the distance between the points. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have ArcInfo, make a layer of the left point, and a layer of the top point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and run Point Distance. Get the distance from the resulting table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you DON'T:&amp;nbsp; you can use trig&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OR you can generate a line between the points and get the length.... whatever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;divide the distance by 4 (for your 4 x 4 grid).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Create Fishnet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fishnet Origin Coordinate = the left point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y-Axis coordinate = the top point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cell Size Width (and Height) distance between the points divided by 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Number of Rows (and Cols) 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe not perfect, but its a place to start...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh, yes, do it in Python.... Loop through the images and clean up the intermediate files as you go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.Denil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 13:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692253#M22946</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2011-09-30T13:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fishnet Batch</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692254#M22947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use Create Fishnet tool (Data Management Tools &amp;gt; Feature Class toolset). Use the imagery data as the template extent. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run once. From Results tab copy the result as Python snippet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, use a python for loop to run in a batch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 07:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692254#M22947</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2011-10-02T07:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fishnet Batch</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692255#M22948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Would that not give a lattice that matches the image extent, rather than the image data area?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The need was for a grid that did not include the no data area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that the whole thing is very much simplier if the grid just has to match an orthoganal rectangle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.Denil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fishnet-batch/m-p/692255#M22948</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2011-10-06T18:42:52Z</dc:date>
    </item>
  </channel>
</rss>

