POST
|
Hello. I can access the metadata of for example a shapefile using: IGPUtilities gpUtils = new GPUtilitiesClass();
IName nameObj = gpUtils.GetNameObjectFromLocation(filePath);
IMetadata metadata = nameObj as IMetadata;
IPropertySet props = metadata.Metadata But how should I access the metadata of a folder (containing a metadata.xml file) or a stand-alone XML metadata file? Is there a generic way to access metadata for any data element? Thanks!
... View more
04-30-2014
04:01 AM
|
0
|
0
|
475
|
POST
|
No one? Seems like such a simple thing, I just don't know where to look.
... View more
07-03-2013
11:51 PM
|
0
|
0
|
290
|
POST
|
Hello! Consider the following code sample, found here and here.
private ILayerEvents_Event pLayerEvents;
void mActiveViewEvents_ItemAdded(object Item)
{
if (Item is ILayerEvents_Event)
{
pLayerEvents = Item as ILayerEvents_Event;
pLayerEvents.VisibilityChanged += new ILayerEvents_VisibilityChangedEventHandler(pLayerEvents_VisibilityChanged);
}
}
void pLayerEvents_VisibilityChanged(bool currentState)
{
//do something here
}
How can I find out which layer triggered the VisibilityChanged event? The pLayerEvents_VisibilityChanged method only receives the visibility state. Thanks.
... View more
06-25-2013
09:53 PM
|
0
|
2
|
862
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|