<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Runtime geoprocessing troubles (geometric network tracing) in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201074#M914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's why I couldn't see the REST service pages:&amp;nbsp; the corporate standard browser at work is IE7, which doesn't support the JSON.stringify function that ArcGIS Runtime uses.&amp;nbsp; I installed IE8 on my test box and the problem went away.&amp;nbsp; Apparently that's not an issue with ArcGIS Server 10.1 because I can see it just fine with IE7. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 17:18:05 GMT</pubDate>
    <dc:creator>MarkCederholm</dc:creator>
    <dc:date>2012-09-06T17:18:05Z</dc:date>
    <item>
      <title>Runtime geoprocessing troubles (geometric network tracing)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201070#M910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My goal is to create a Runtime app that works with a file geodatabase on disk outside of a GPK or MPK.&amp;nbsp; I can create and use the referenced MPK just fine, but I'm having problems with the GPK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The GPK is supposed to perform tracing on a geometric network.&amp;nbsp; Following the Network Analyst example, I created a model with flags and barriers set up as feature set model parameters, and set the geometric network as a model parameter.&amp;nbsp; When I run the model in ArcMap, it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From there, I created a GPK using the "Package schema only" and "Support ArcGIS Runtime" options.&amp;nbsp; But when I create a LocalGeoprocessingService with the GPK, the REST services URL comes up blank in the browser while the app is running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 17:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201070#M910</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2012-08-10T17:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime geoprocessing troubles (geometric network tracing)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201071#M911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a simple Buffer GPK and see the same issue.&amp;nbsp; So it may not be related to the tracing model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 19:45:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201071#M911</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2012-08-10T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime geoprocessing troubles (geometric network tracing)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201072#M912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turns out the service works.&amp;nbsp; I just can't view the REST endpoint the way the documentation describes.&amp;nbsp; Weird.&amp;nbsp; :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201072#M912</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2012-08-13T19:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime geoprocessing troubles (geometric network tracing)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201073#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I never figured out why the REST services page refuses to appear, but at least I finally figured out how to get the geometric network trace service working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turned out that creating a model was NOT the way to go, because the service would not expose the network parameter, and would try to use the exported schema as the geometric network.&amp;nbsp; Instead, I created a script tool with the network path as a string parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into another problem in that the edge features contain curves, which will cause the service to bomb.&amp;nbsp; Because Densify_edit is not supported in Runtime (BOO! :mad:), I had to work around it by exporting results to a temporary shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
import os
# Script arguments and variables
sNetwork = arcpy.GetParameterAsText(0)
Flags = arcpy.GetParameterAsText(1)
Barriers = arcpy.GetParameterAsText(2)
Trace_Results = Flags
LayerList = ["gas_main", "service_line", "service_point"]
EdgeList = [True, True, False]
iOutParameter = 3
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = "in_memory"
&amp;nbsp;&amp;nbsp;&amp;nbsp; sScratchWS = arcpy.env.scratchFolder
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Perform trace
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Tracing...")
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TraceGeometricNetwork_management(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sNetwork, Trace_Results, Flags, "FIND_CONNECTED", Barriers)
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Extract feature sets from group layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in range(len(LayerList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sLayer = LayerList&lt;I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bEdge = EdgeList&lt;I&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("Processing results (" + sLayer + ")...")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectResults = arcpy.SelectData_management(Trace_Results, sLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectLayer = SelectResults.getOutput(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempName = arcpy.CreateUniqueName(sLayer)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if bEdge:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Densify_edit (to remove curves) is not supported in Runtime
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Workaround: export features to shapefile
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempShpName = arcpy.CreateUniqueName(sLayer + ".shp", sScratchWS)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("TempShpName = " + TempShpName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(SelectLayer, TempShpName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(TempShpName, TempName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(TempShpName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Select_analysis(SelectLayer, TempName, None)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFeatureSet = arcpy.FeatureSet()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFeatureSet.load(TempName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameter(iOutParameter, OutFeatureSet)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iOutParameter += 1
except Exception, ErrorDesc:
&amp;nbsp;&amp;nbsp;&amp;nbsp; sErr = "ERROR:\n" + str(ErrorDesc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(sErr)
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201073#M913</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-12-11T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime geoprocessing troubles (geometric network tracing)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201074#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's why I couldn't see the REST service pages:&amp;nbsp; the corporate standard browser at work is IE7, which doesn't support the JSON.stringify function that ArcGIS Runtime uses.&amp;nbsp; I installed IE8 on my test box and the problem went away.&amp;nbsp; Apparently that's not an issue with ArcGIS Server 10.1 because I can see it just fine with IE7. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 17:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/runtime-geoprocessing-troubles-geometric-network/m-p/201074#M914</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2012-09-06T17:18:05Z</dc:date>
    </item>
  </channel>
</rss>

