I am trying to resolve an issue with an ArcObjects extension. This particular portion of logic, gathers metadata for layers in the map. It works fine with regular data layers but with network data (pipeline network layer), it takes much longer than expected. The point layers participating (exp: wells, facilities, pipelines nodes) within network are fine, it's only the pipeline (line) that takes longer. This impacts user workflow when they are trying to switch data frames (one with network data and other with schematics data). Initially i thought that it was related to missing metadata but adding metadata didn't help resolve this issue. I am looking for some suggestions on what may be the workaround for this issue. Our environment is ArcGIS 10.2.2, VB.NET, .NET4 code base. Below is the code.
Dim pMD As IMetadataDim pPS As IPropertySetpDLayer = CType(pLayer, IDataLayer)pMD = CType(pDLayer.DataSourceName.Open, IMetadata)If Not pMD Is Nothing Then Dim vaValues As Object Dim v As Object Dim valuesArray As System.Array pPS = New PropertySet pPS = pMD.Metadata Dim tnames As Object Dim tvalues As Object Dim vFormat As Object 'Return the metadata elements pPS.GetAllProperties(tnames, tvalues) - code takes much longer for pipeline data
أكثر...
Dim pMD As IMetadataDim pPS As IPropertySetpDLayer = CType(pLayer, IDataLayer)pMD = CType(pDLayer.DataSourceName.Open, IMetadata)If Not pMD Is Nothing Then Dim vaValues As Object Dim v As Object Dim valuesArray As System.Array pPS = New PropertySet pPS = pMD.Metadata Dim tnames As Object Dim tvalues As Object Dim vFormat As Object 'Return the metadata elements pPS.GetAllProperties(tnames, tvalues) - code takes much longer for pipeline data
أكثر...