AnsweredAssumed Answered

Script Tool not showing Extent of Raster in ArcPro

Question asked by christopher.sanchez1_portlandcc on Jun 11, 2020
Latest reply on Jun 12, 2020 by Davepike101@hotmail.com

I am trying to make a script tool that shows the extent of a raster. The tool runs in ArcPro without an error, but doesn't produce results of the extent of the raster. Is there any line of code I am missing to show the extent of my input raster?

thank you

 

import arcpy

ws = r"C:\Users\tophe\Documents\ArcGIS\Projects\Programming\rasters"
arcpy.env.workspace = ws
inFC = arcpy.GetParameterAsText(0)


desc = arcpy.Describe(inFC).extent
print(desc)

if __name__=="__main__":
   workspace = r"C:\Users\tophe\Documents\ArcGIS\Projects\Programming\rasters"

Outcomes