Select to view content in your preferred language

Support Copy/Paste Extent between Properties and Geoprocessing Extent

383
1
06-20-2024 05:51 AM
Status: Open
Labels (1)
PeterKnoop
MVP Regular Contributor

Please make cut-and-paste of extent compatible across Pro.

For example, I have a raster in a map, and I want to use the raster's extent with a geoprocessing tool, like Create Map Tile Package. I would like to be able to copy the Extent from the layer's properties, and paste it into the geoprocessing tool's Extent parameters.

The Properties dialog for layers includes a Copy for the Extent:

PeterKnoop_1-1718886818939.png

What ends up on the clipboard is:

Top 4,205,399.075020 m
Bottom 4,204,529.213820 m
Left 516,777.957490 m
Right 518,054.691890 m

Unfortunately, this does not appear to be the format expected when using Paste Extent in a geoprocessing tool. Attempting to paste the above sets all the values to 0:

PeterKnoop_3-1718887676834.png

When I manually enter the correct values, and then Copy Extent:

PeterKnoop_2-1718887098831.png

The results on the clipboard use a different format:

516777.95749 518054.69189 4204529.21382 4205399.07502 PROJCS["WGS_1984_UTM_Zone_35N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",27.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

I would like it to be possible cut-and-paste Extent to/from anywhere in the ArcGIS Pro interface.

 

 

 

1 Comment
MargaretCrawford

There is a reason this does not work. The valid format for copied and pasted extents in the Geoprocessing Extent control is the same as the arcpy.extent object. This is so you can easily copy and paste between python scripts and the geoprocessing ui.

If you would like to get the extent from a raster layer, you can use the "Extent of a Layer" option available on the control. But if you only have raster layers in your project, you might encounter BUG-000168943 
https://support.esri.com/en-us/bug/the-extent-of-a-layer-option-cannot-be-selected-for-the-bug-00016... 
For now, you could workaround this by adding some vector data to your map.