Hello,
I am wondering how to reproject an arcpy.Extent object. I have a Python script toolboxes with a single GPExtent parameter. In the execute block, I have the following code:
ext = parameters[0].value
srs = arcpy.SpatialReference(4326)
ext.projectAs(srs)
When I run this, I get an error stating "RuntimeError: Object: CreateObject error creating spatial reference". Am I doing something wrong? Oddly, the above code runs fine in a notebook.
Thanks in advance!