How to access metadata in arcgis pro sdk

1518
6
Jump to solution
10-19-2018 02:07 AM
servicesigu
New Contributor III

Hi,

I would like to retrieve some metadata tags from layers, to automatically build credits for the map.

How to get a tag from metadata for a layer ?

How to set credits for a map when a new map is created ?

How to update credits when the content of a map changed ?

Which class to use ?

Could someone help me ?

Thanks.

1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

Hi,

Check out this response: how to retrieve/set metadata on a layer 

But you should be able to get and set metadata for project items at this time: 

Item Metadata 

* Snippets:

Thanks

Uma

View solution in original post

0 Kudos
6 Replies
UmaHarano
Esri Regular Contributor

Hi,

Check out this response: how to retrieve/set metadata on a layer 

But you should be able to get and set metadata for project items at this time: 

Item Metadata 

* Snippets:

Thanks

Uma

0 Kudos
servicesigu
New Contributor III

Thank you very much.

0 Kudos
NathanWarmerdam
New Contributor III

Uma Harano That response you linked to says that retrieving / setting metadata on a layer is not supported (or was not at the time).  Is this still the case?  For example, I would like to retrieve the thumbnail from a layer file... is this possible (outside of manually opening the xml myself)?

0 Kudos
UmaHarano
Esri Regular Contributor

Hi Nathan,

This feature is not available yet. This will be added to the public API in 2020.

Thanks

Uma

Laxmikanth
New Contributor

Hi, 

Is this functionality available now? Any update on this? 

Regards, 

Laxmikanth

0 Kudos
TimSexton1
Occasional Contributor

Checking to see if any updates have happened in regards to metadata availability in ArcGIS Pro SDK.  I can get meta data from a MapMember object like a BasicFeatureLayer or StandAloneTable.  But it would be nice to be able to get the meta data from a Table or RelationshipClass object that is not in the project or map.

Would like to be able to do something like this:

var table = Geodatabase.OpenDataset<Table>(tableName);
var tableMetadata = table.GetMetadata();

var relationship = Geodatabase.OpenDataset<RelationshipClass>(relationshipName);
var relationshipMetadata = relationship.GetMetadata();

 

Tags (2)
0 Kudos