Geographic Information Systems Asked on November 10, 2020
I have a feature class of areas that are discontinuous. I want to be able to select each site and then create a fishnet grid (2×2) for each site I specify.
I am able to do this except one major step: The Spatial extent is still set to the entire dataset.
I am trying to stick to using ModelBuilder so I can automate it easier or give to a colleague.
Below is the ModelBuilder diagram. Even though I add the “Recalculate Feature Class Extent” tool, it returns the same extent origin.
When creating the fishnet set the Environment variables for that tool such that they match the input feature class (rather than the entire dataset). You'd want to use the Output Extent setting, with the "same as layer input_feature_class" option.
Answered by ycartwhelen on November 10, 2020
I found a solution to my own question. Using what @ycartwhelen posted, I added the Iterate Feature Selection iterator. From there, I added the Buffer Tool to create a little bit of excess around the site to account for any extra data. The buffer has its own extent. That buffer is fed through the Create Fishnet Tool as the Template Extent and Environment Extent. This created a grid for each site.
I was able to take out the "Make Feature Layer" and "Copy Features" tools from the diagram above. It works like a charm!
Answered by Smithw1 on November 10, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP