Select to view content in your preferred language

Mining Metadata

874
3
Jump to solution
08-03-2022 12:55 PM
Labels (1)
KimGarbade
Frequent Contributor

Hi everyone,

We have hundreds of layers (mostly feature classes) spread across several enterprise GDBs (SQL Server).  We did not create most of this data, but rather we acquired it from other sources (Federal, State, County, City governments).  We regularly maintain these sources by getting updates and replacing the existing with the most recent data we have acquired.  Recently we have started to think about how we can report on these data sets to managers and non-GIS folks.  These users want to see an "Excel like" report containing one line per data layer containing data such as "FileName", "AcquiredBy", "AcquiredFrom", "AcquiredDate", "CurrentToDate", "Description", "CostOfAcquisition", etc.  My first thought is that we can mine as much of this data as we can from any metadata that might have accompanied the layers when we acquired the data.  My problem is I don't even know where to start with such an effort.  There is probably a metadata object I can access using Python, but how would I go about doing this.  Any help or guidance would be greatly appreciated.

K

1 Solution

Accepted Solutions
MarceloMarques
Esri Regular Contributor

https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm

 

| Marcelo Marques | Esri Principal Product Engineer | Cloud & Database Administrator | OCP - Oracle Certified Professional | "In 1992, I embarked on my journey with Esri Technology, and since 1997, I have been working with ArcSDE Geodatabases, right from its initial release. Over the past 32 years, my passion for GIS has only grown stronger." | “ I do not fear computers. I fear the lack of them." Isaac Isimov |

View solution in original post

3 Replies
MarceloMarques
Esri Regular Contributor

https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm

 

| Marcelo Marques | Esri Principal Product Engineer | Cloud & Database Administrator | OCP - Oracle Certified Professional | "In 1992, I embarked on my journey with Esri Technology, and since 1997, I have been working with ArcSDE Geodatabases, right from its initial release. Over the past 32 years, my passion for GIS has only grown stronger." | “ I do not fear computers. I fear the lack of them." Isaac Isimov |
KatClifton
Occasional Contributor

@MarceloMarques is there a way to easily check the last time that the metadata was updated?  I do not see an element for this in the Metadata class.

0 Kudos
MarceloMarques
Esri Regular Contributor

@KatClifton - I checked the metadata arcpy documentation as well and I did not find any property that could show the last time the metadata was updated.  
https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm

| Marcelo Marques | Esri Principal Product Engineer | Cloud & Database Administrator | OCP - Oracle Certified Professional | "In 1992, I embarked on my journey with Esri Technology, and since 1997, I have been working with ArcSDE Geodatabases, right from its initial release. Over the past 32 years, my passion for GIS has only grown stronger." | “ I do not fear computers. I fear the lack of them." Isaac Isimov |
0 Kudos