Mining Metadata

499
3
Jump to solution
08-03-2022 12:55 PM
Labels (1)
KimGarbade
Occasional Contributor III

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 | Principal Product Engineer | Esri |
| Cloud & Database Administrator | OCP - Oracle Certified Professional |
I work with Enterprise Geodatabases since 1997.
“ 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 | Principal Product Engineer | Esri |
| Cloud & Database Administrator | OCP - Oracle Certified Professional |
I work with Enterprise Geodatabases since 1997.
“ I do not fear computers. I fear the lack of them." Isaac Isimov
KatClifton
New Contributor III

@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 | Principal Product Engineer | Esri |
| Cloud & Database Administrator | OCP - Oracle Certified Professional |
I work with Enterprise Geodatabases since 1997.
“ I do not fear computers. I fear the lack of them." Isaac Isimov
0 Kudos