8

A helpful trick is to access the group layer output from its in_memory location: arcpy.env.workspace = r'in_memory' #Group Layer resides in in_memory #forget the map reference, and go straight to its source userLayer = #make sure this is defined downstreamUsers = [] arcpy.TraceGeometricNetwork_management(myNetwork,outNet,mypts,"TRACE_UPSTREAM") ...


5

First, let me say that I share your frustration with the inability to set flow direction where there is a split with multiple sinks. As far as I can see, you have set up your dataset, layers and network properly. The explanation that I received is that when there are 2 or more sinks on a common junction, each sink potentially has the ability to draw flow ...


4

Short answer to the question "Can we create relationship classes based on a geometric network?" Relationships yes, relationship classes no. Long answer: A relationship class as defined by ESRI deals with how attributes inside fields relate to each other in two or more tables. A relationship class can be one to one, one to many or many to many. It can be ...


4

There are errors that one can get due to several wrong bits. Please refer to the help page Identifying geometric network build errors. Most often these errors have to do something with errors in features' geometry. I would start with: 1) Click Customize > Toolbars > Geometric Network Editing. The Geometric Network Editing toolbar is added to ArcMap. 2) ...


4

I found a procedure to do this described step-by-step at the ArcGIS Discussion Forums. I recommend that you use that to perform each step manually first, and at the same time use Copy As Python Snippet in the Geoprocessing | Results window to start building the Python script for automation. I would use Python by preference but it may also be amenable to ...


4

It's very hard to tell without seeing the 'equipment.dbf' file, but my guess is that there is something about the data file that Arc doesn't like. I wonder if there is something about the DBF schema that is unusual/unexpected (since it is failing at the schema test). In addition to Kirk's question, have a look at: Do the field names conform to a strict ...


4

From the look of your screen shot it looks like you have used the utility network analyst toolbar and the Trace Upstream option? So... not ArcHydro? If this is correct then click on the down arrow next to the word Analysis and select options. Under the results tab set results format to selection. This will select the polylines and you can compute the total ...


4

To my knowledge there is no tool that can do what you are asking, this needs to be done in a programmatic way. If you have VBA installed and licensed then the following code will select indeterminate edges. It assumes the geometric network is the first layer in your TOC and you need to edit the line to update it with the name of your featuredataset (current ...


4

My guess is that is has been removed from the Processing Toolbox. You can still access v.net from GRASS tools. From QGIS 2.10 onwards, you have to manually select QGIS to start with GRASS, you can do this from the Start menu. The GRASS menu is available from the Plugins menu: And v.net should be available in the GRASS Tools:


4

Odds are it has finished, and finished properly. You don't have any outputs on your tool, thus the script tool wont return anything to your ArcMap session. In most Trace models/scripts I've seen, you need to Select Data to pull out whatever child element you want, then its good to run Copy Features on that item. The output of CopyFeatures should be passed ...


4

This looks very similar to a problem I'm currently having in my geometric network (sewer). The problem could be disconnected or disabled features. To find these you will need to see zoom in at each location (very close) to see if there are any gaps between edge and junction (can be very hard to spot), and check the attributes of the first untraced edge and ...


4

The key here is to collect the visited edges into a path array and check against that in each iteration. Try WITH RECURSIVE connected_line AS ( SELECT 0 AS it, ARRAY[a.id] AS path, a.geom AS geom FROM network a WHERE id = 1 UNION ALL SELECT c.it + 1 AS it array_append(c.path, b.id) AS path, b....


3

A polyline is closed if from and to points are the same. So you could test this in a new field: field calculator : Python codeblock def IsClosed(shp): if (shp.firstpoint.x == shp.lastpoint.x) and (shp.firstpoint.y == shp.lastpoint.y) : return 1 else: return 0 result IsClosed(!Shape!)


3

When working with Geometric networks I find it is best to specify either a source or a sink not both. Here is Esri help section on this topic In utility network applications, knowing the direction of flow along network edges can be essential. The commodity that flows through the network—water, electricity, and oil—has no will of its own. The network ...


3

Yep, turns out I wasn't honoring the wisdom of the beginner's mind and I jumped right to an assumption that my problem was way more complex than simply not having run the Set Flow Direction tool. Entries in the attribute table of the NHDFlowline file suggest that "WITH_DIGITIZED_DIRECTION" is the right parameter to go with - and it seems to check out ...


3

I'm sure you're aware of the nature of Open Street Map - it's a user collected and edited resource. If you're going to use this kind of information it would be largely down to you to fix these - and in the spirit of things update the information! If you want a relatively clean network for analysis straight away, I'd suggest TIGER. ... but I think you'd ...


3

I just got an answer from ESRI about this issue. The full error code list is mentioned here. Error code 18: The feature has an invalid subtype value.


3

If you have set the flow direction as @ChrisW mentions then the polylines should be flowing in a source to sea direction. Place your flag at the green location then using the Utility Network Analysts tool bar set Trace task to Trace upstream and solve. The trick here is before you do the trace go into the options section under the Analysis dropdown on the ...


3

You can not set a flag as a model (or gp tool) parameter. However, you can use a point feature class instead of a set of flags. Therefore if you select some features of that point feature class the tool will just take those selected ones to the account. So, use "Trace Geometric Network" geoprocessing tool with your model and set the Flags parameter with ...


3

Here is the snippet: IApplication app = ... UID uidUtilNet = new UIDClass() { Value = "esriEditorExt.UtilityNetworkAnalysisExt" }; var m_utilNetExt = app.FindExtensionByCLSID(uidUtilNet) as IUtilityNetworkAnalysisExt; nax = m_utilNetExt as INetworkAnalysisExt; for (int i = 0; i < nax.FeatureLayerCount; i++) { IFeatureLayer featureLayer = nax....


3

The Incremental Network Loader tool works for file geodatabases and personal SDE instances, but appears to have a bug for loading into SDE's, default or version. We're reporting this bug to ESRI. Alternatively, I found two other methods for accomplishing the data load into my SDE version: Append Tool - quick and new features were snapped to the geometric ...


3

If you have PostGIS installed, you will be able to read the database the same way as you would read an SDE-enabled/"Enterprise" geodatabase that uses ESRI's st_geometry libraries instead of PostGIS. Create a new database connection, specify the server name, database name, and the user credentials, and you should be good to go. You can create a new database ...


3

If you're in an edit session and you move a node, the connected lines and assets should come along with it and maintain their network connectivity. In an edit session, you can always undo or not save your changes if something goes wrong. I would probably test dragging the hydrant an extreme distance, like a block or two away, to make sure that everything ...


3

RivEX does much if not all of what you are asking. For computing upstream length you would run the appropriate RivEX attribution tool to encode that into the network then transfer the lengths to your dam points which you would have snapped to the network using RivEX snapping tool. The process of transferring ensure the correct length is computed. You should ...


3

The Utility Network Editing toolbar has a button that will toggle flow arrows. You'll see this if you download the solution (it comes with sample water data):


3

From Managing a geometric network (emphasis mine) Any of the following will require you to delete and re-create your geometric network: You need to add a new populated feature class to the network. You need to remove a weight from the network. The snapping tolerance was too small on the previous build. You need to change a feature class ...


3

You may ned to investigate what is often called a medial axis transform and sometimes a skeletonization. From wiki/Medial_axis: The medial axis of a simple polygon is a tree whose leaves are the vertices of the polygon, and whose edges are either straight segments or arcs of parabolas. The medial axis together with the associated radius function of ...


3

RivEX can attribute your river network with loop ID's, see the help file here. You could then use your downstream trace to select polylines, as RivEX gives each loop family a unique ID you could simply summarize that and then re-select based upon your list of ID's. So this is a partial automated solution, use RivEX to encode your network then use what ever ...


3

I would use a dictionary to do that. I'm surprised how fast they are. import arcpy def GetDict(fc,precision): fields = ['SHAPE@','OID@'] # use a dictionary with x1-y1-xn-yn key dict = {} with arcpy.da.SearchCursor(fc, fields) as cursor: for row in cursor: fpx = round(row[0].firstPoint.X,precision) fpy = ...


3

I can't comment on the ArcFM component of your question, but if you want a sample that does Valve Isolation off a geometric network, I just uploaded what I have to arcgis.com I'm not the original author, it was passed down to me (thus I make no claims on being an expert in this area, nor to how authoritative it is). You can turn the model into a script. The ...


Only top voted, non community-wiki answers of a minimum length are eligible