I am running a network trace (Find Connected) which does seem to return all the network elements. However, when I try to get the features using UtilityNetwork.GetFeaturesForElementsAsync Method I do not get anywhere close to the number of features as their are elements. For instance with the Gas Pipe I get 5856 elements returned. Calling GetFeaturesForElementsAsync I get 14 features returned.
I am using the code from the sample and don't see any settings I could change to impact the conversion
var elements = traceResult.Elements.Where(e => e.NetworkSource.Name == featureLayer.FeatureTable.TableName).ToList();
if ( !elements.Any() ) continue;
features = (await _utilityNetwork.GetFeaturesForElementsAsync(elements)).ToList();
Thoughts on what I am doing wrong here?
Thanks
-Joe
Thanks for the update, just so you are aware, I am just using the map template provided by the ArcGIS Solutions Deployment Tool | ArcGIS Solutions . With the new information and up coming changes perhaps changes could be made to the solution template in order to have the map configured as expected.
Thanks
-Joe