Select to view content in your preferred language

Extracting Collection Date From Basemap

2321
2
Jump to solution
02-10-2016 10:14 AM
DanielleAlexander
Deactivated User

When Identifying a Basemap (specifically ESRI Imagery) in ArcMap, you can see certain properties about it such as the collection date. I'm wondering how I can achieve the same effect from the code side. I've obtained the IMap object, Basemap ILayer from within, and I'm looping over the properties after doing an Identify (which is depressingly slow). I want to know how I can access the Field/Value dictionary associated with these properties, the COM object doesn't make it very obvious.

Identify.JPGCom.png

1 Solution

Accepted Solutions
DanielleAlexander
Deactivated User

After some trial and error I've figured it out.

Rather than converting to an IIdentifyObj, I convert directly to an IMapServerIdentifyObject, and can access MapServerIdentifyResult.Properties from there. The whole process roughly looks like this...

code.png

View solution in original post

2 Replies
DanielleAlexander
Deactivated User

After some trial and error I've figured it out.

Rather than converting to an IIdentifyObj, I convert directly to an IMapServerIdentifyObject, and can access MapServerIdentifyResult.Properties from there. The whole process roughly looks like this...

code.png

LangdonSanders2
Frequent Contributor

Neat solution, saving this for later.

Thanks Danielle.

0 Kudos