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
<SPAN class="keyword token">var</SPAN> elements <SPAN class="operator token">=</SPAN> traceResult<SPAN class="punctuation token">.</SPAN>Elements<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Where</SPAN><SPAN class="punctuation token">(</SPAN>e <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> e<SPAN class="punctuation token">.</SPAN>NetworkSource<SPAN class="punctuation token">.</SPAN>Name <SPAN class="operator token">==</SPAN> featureLayer<SPAN class="punctuation token">.</SPAN>FeatureTable<SPAN class="punctuation token">.</SPAN>TableName<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">ToList</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN> <SPAN class="operator token">!</SPAN>elements<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Any</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">continue</SPAN><SPAN class="punctuation token">;</SPAN>
features <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">await</SPAN> _utilityNetwork<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetFeaturesForElementsAsync</SPAN><SPAN class="punctuation token">(</SPAN>elements<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">ToList</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thoughts on what I am doing wrong here?
Thanks
-Joe