AnsweredAssumed Answered

Create fishnet with row iterator - why does extent not update?

Question asked by ablei0 on Mar 25, 2014
Latest reply on Feb 3, 2015 by xander_bakker
Hello, I am struggling to solve what should be a simple problem: I want to create fishnets over several squares; each of the squares is 2200 meters by 2200 meters. I am using Model Builder in ArcGIS Desktop 10.1. I would like to use the iterate row selection feature.

Let's say I am dealing with a shapefile that contiains only one square. There is no issue here. I set the extent of the fishnet to match the extent of the file that contains one square only. I specify the numbers of rows and columns and cell size. This is easy.

Now let's say i want to do the same thing but for a file that contains 68 square. Each square corresponds to a row in the attribute table. This is what I mean, one shapefile in the TOC and 68 squares:


The attribute table contains 68 rows where each row corresponds to a square. All quite normal

When I input the 68 row file to the "itereate row selection tool" and connect that to the create fishnet tool, like so (below) I get a pop-up box that wants me to choose between "template extent," "environments," or "precondition." I choose template extent thinking that this means: "treat each feature represented by each of the 68 rows as having unique extents to be used in creating 68 different fishnets."


When I double click on the fishnet box, I see this:


This is where things start to get a little fishy (pardon the pun!), because I would like the have the extent of each fishnet update to reflect each feature in each of the rows. Nevertheless, there are coordinates already entered for the extent of the fishnet. As I have found out, these coordinates correspond to the extent of the data frame - the extent when all 68 households are visible. For example when I hit ok and run the model:

I see this:


There was a fishnet created in the lower left hand corner, it has 22 rows and 22 columns, each 100 x 100 meters, just as i would like. Unfortunately, this location does not correspond to any of the squares in the file. And there is only one fishnet, not 68. This is what it looks like when I zoom to the extent of the fishnet that was created. This fishnet looks alright, the problem is I need 68 of them to match the extents of the 68 squares in the top image.


I have a vague notion of what is going wrong. ArcGIS does not understand, or I am not properly inputting, the fact that one fishnet should be created for each row of the input table. Moreover, the extent each fishnet that is created should match the extent of the feature in each row.

What I would like to have: At the very least, 68 fishnets, each 22 rows by 22 columns, 100 x 100 meter cells. 22 x 22 = 484, so there will be 484 polygons associated with a square. Since there are 68 squares, there should be 484 x 68 = 32,912 rows when all is said in done. This can be in one file with 32,912 rows or each square can be it's own file, meaning there would be 68 files, each with 484 rows.

Any suggestions, tips, solutions, would be immensely appreciated.  My sincere thanks.