how to retrieve/set metadata on a layer

345
5
Jump to solution
05-30-2018 03:11 PM
Highlighted
New Contributor II

Using the C# ArcObject SDK, I can set/get metadata on a layer with the following calls:

IRasterLayer layer = ...;

ESRI.ArcGIS.Geodatabase.IDataset dataset = layer as IDataset;
ESRI.ArcGIS.Geodatabase.RasterDatasetName objectClassName =(ESRI.ArcGIS.Geodatabase.RasterDatasetName)dataset.FullName;
ESRI.ArcGIS.Geodatabase.IMetadata metadata = (ESRI.ArcGIS.Geodatabase.IMetadata)objectClassName;

IPropertySet properties = (IPropertySet)metadata.Metadata;

is there anything equivalent in ArcGIS Pro SDK?

1 Solution

Accepted Solutions
Highlighted
Esri Regular Contributor

No, we haven't yet added support for metadata to the ArcGIS Pro API.

View solution in original post

0 Kudos
5 Replies
Highlighted
Esri Regular Contributor

No, we haven't yet added support for metadata to the ArcGIS Pro API.

View solution in original post

0 Kudos
Highlighted
New Contributor II

Is there plan to add it in the near future?

0 Kudos
Highlighted
Esri Regular Contributor

It's in our roadmap to be sure, but unfortunately no plans for the short-term.

0 Kudos
Highlighted
New Contributor III

I'm also waiting patiently for metadata access in Pro SDK... can't come soon enough!

Highlighted
New Contributor III

Upvote for this feature, I too am in need to update metadata on features at the moment.

0 Kudos