when I set the arcpy.env.Extent to be a link to my feature class
dtm = 'C:/Users/brouwerj/Documents/kapiti_1m_dtm.tif'
arcpy.env.Extent = dtm
It isn't altering the extent of the output of the following to be the same as the (larger extent) dtm raster layer.
buffer = 'shoreline_kapiti_NZGD_1kmBuffer'
I have also tried using arcpy.env.Extent = arcpy.Describe(dtm).extent
but that doesn't work either.
Do you have any idea why this isn't working?
When i try it in the software (Arcgis pro version 2.7.0) it works fine if I change everything in the environment settings tab of the feature to raster tool.
I'm using python 3.7.9 and Spyder 4.2.1
Not sure if arcpy has a version number or how to access that?
Please let me know if you can help, I'm not sure what I'm doing wrong!
Solved! Go to Solution.