Accessing SRC_DATE2 metadata information from World Imagery Basemap

424
3
12-27-2021 10:11 AM
mattkramer
Occasional Contributor

I was curious if it was possible to pull metadata out of a basemap with python, specifically the date of the imagery in the World Imagery Basemap layer.  

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

How To: View the World Imagery basemap metadata in ArcGIS Pro (esri.com) the non-python way

and this is all that is available via arcpy and metadata

Metadata—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
mattkramer
Occasional Contributor

Yeah I did stumble upon the Metadata class, it seems to work on whole layer metadata instead of the information related to certain areas or features.  Could this data be accessed in a similar way to a feature class?  Run a select by location off a point or polygon and then use a search cursor with the date field passed in?  When running that code I get an "ERROR 000368: Invalid input data." which I think is due to a basemap layer not being selectable.

0 Kudos
DanPatterson
MVP Esteemed Contributor

The latter statement is correct, hence the error.  I didn't know you were getting an error message.


... sort of retired...
0 Kudos