Adding raster metadata to a mosaics attribute table

02-27-2014 09:29 AM
Occasional Contributor
Hi All,

I'm trying to figure out a way to automatically calculate fields in a mosaic dataset's attribute table based on metadata/XML tags.

The Help documentation mentions adding a field and giving it a name = the xml tag:

When I try to enter the field's name using a tag (e.g. /metadata/dataqual/lineage/srcinfo/srcscal) I get an error about invalid characters b/c of the /

Any suggestions on getting this to work?
Anyone have success using a python script with ElementTree() to parse an xml and calculate attribute fields?

I currently have a script that pulls in raster properties, but there are a few things from the metadata that I'd like to add to the attributes (e.g. /cntper, /cntorg...)

Thanks for any help and suggestions!
0 Kudos
0 Replies