Select to view content in your preferred language

Creating a model to export out raster data (tiff) from a fishnet grid

312
1
07-17-2023 08:32 PM
Labels (2)
MonikaWheat88
New Contributor III

Hello all, 

 

I am trying to create a model that will take basemap imagery and export it out into a tif file so it can be used in autocad drawings or online. I had a thought to take my project boundary layer and create a fishnet grid system. From there I was thinking an either select by feature or split by attribute. from there I wanted to run an iterator to select all different ids to run them.

After this is where I am drawing a blank on how to zoom to my selected polygon within the fishnet grid and then how to export out the raster data.

 

I found this for the zoom

import arcpy
def zoom():
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
df.zoomToSelectedFeatures()
return True

does anyone have any ideas on how to zoom and export maps? and no it can't be a spatial series because it is only in pdf and that will not work with the remainder of the workflow

1 Reply
DuncanHornby
MVP Notable Contributor

Sounds like you want to be calling exportToJPEG() on MapView? There is sample code at bottom of help page.

0 Kudos