> Script Details
Copy & Paste Image Symbology (w/ Nulls) to Images and/or ImageCatalogs
report inappropriate content
Nov 17 2005
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
The DLL plug-in CopyPasteRasterAllSym.dll (ArcMap 8.x and ArcMap 9.x) can copy an image's symbology and paste it to other image(s) or imagecatalog(s). Select multiple raster layers before pasting to apply to multiple layers. This was written to easily set multiple image catalogs or many images to have a NULL background. This also works for most types of stretches and for setting transparency on many rasters.
To set an image catalog to have a Null background. First, bring in a dummy individual image, set the image's symbology to "Display background value 'X' as NULL", hit apply. Now copy this images symbology with the new copy button, select the image catalog(s) and/or image(s), and use the second new tool to paste over the original symbology. where 'X' is usually 0 for 8 bit images.
known issues (there are many):
-If it doesn’t work the first time, try to copy and paste again. Also hitting the refresh screen button can help to sync it too.
-When copying a min/max stretch - it will do it but not toggle the min/max switch necessary to get it to do anything. You will need to open each image and toggle that switch but the values should be set for you. Maybe use "classified" symbology type to help.
-When using "stretched" image display type, it will show the numeric range from the copied image but will still use the min/max for each individual image. Mainly an issue with DEMs or other 16bit/32bit datasets.
-So to copy the exact same numeric range of colors for all images you cannot use "stretched". You will have to use "classified".
-For some image types or stretch types it just may not work as desired? slowly working on these.
Uploaded as a VB DLL with VB project and code. Built and released for ArcMap 8.x and ArcMap 9.x.
Tools -> Customize, add from file. Select the appropriate *.dll for ArcMap 8.x or ArcMap 9.x. This will create a "USGS" category, drag "copy" and "paste" icons to a toolbar. If at any point this process returns an error, it is probably because you need administrator access to add these.
version 3.1 Sep 29, 2004 - added support for ArcMap 9.x
Please let me know if you have any problems. Based off ESRI samples.
Trent Hare - USGS