Hello,
I am taking my first steps with QGIS and the 'Thiessen Polygon" tool from WaterCAD. The thing is that the surfaces assigned to each node, using this areal distribution tool, do not seem to be correctly generated and I wish someone could tell me the reason.
I...
- Created the topology and the influence area in AutoCAD.
- Loaded the first one in WaterCAD using ModelBuilder.
- Turned the other into a shape file using QGIS.
- Imported the QGIS file in WaterCAD and applied the Thiessen Polygon tool.
- Imported the segmented areas in QGIS and sized them.
- Created an attribute called 'Q' and assigned proportionally demands to each area in QGIS.
- Used LoadBuilder and ran the model.
Thanks in advance
Hi,
Did you specify any boundary polygon when specifying the thiessen polygons? Or did you just specify the buffering percentage? See this article for details: Extending service area polygons to fill flow boundary layer
Can you share the model files (.wtg, .wtg.sqlite) for our testing? See this article for sharing hydraulic model files over the forum.
From your workflow it seems you might be using "proportional distribution by area" method. See this article to understand the various LoadBuilder methods: Creating Thiessen polygons for certain nodes in your model. See the "Proportional Distribution by Area" method and its example.
Regards,
Yashodhan Joshi
Thanks for answering. I respond in order:
1) Yes, I specified a boundary polygon layer (not buffering percentage. By the way, what is it for?). That is what I mencioned as "influence area".
2) Sure. I uploaded them in a ZIP file as "RED DE AGUA POTABLE".
3) When I clicked on Thiessen Polygon tool, I selected 'Junction/All Elements' because I wanted to consider all of them.
Thanks again
Answer Verified By: Brian Estrin
Hello Brian,
Did you adjust the Thiessen Polygon shapefile before applying it in LoadBuilder? Your Thiessen Polygon file appears different compared to what I see when I generate a new one.
That said, when using the Thiessen Polygon and the loading shapefile in LoadBuilder, the demand data is updated. Are you running into an issue when you are using it?
Regards
Scott
Hello Scott,
Thanks for answering. The Thiessen Polygons shown in QGIS (shape file), display the same subdivision that I see on my WaterCAD model. In fact, the polygons where made with the WaterCAD tool. I attach screenshots below.
Shape before generating Thiessen Polygons with WaterCAD
Shape after generating Thiessen Polygons with WaterCAD.
Could you explain me the mistake I am making, please? Or tell me how I should proceed to reach my goal (assign demands to each node in terms of areas)?
Thanks
Try the following to see if it helps. First, create a new Thiessen polygon file in WaterCAD. Don't worry about opening it in QGIS. That step is not necessary. The Thiessen polygon does not need to include the demand data. It is only used to define the area around the nodes.
After creating the Thiessen polygon, open LoadBuilder. You can create a Proportional Distribution by Area connection or edit the existing one. For the Service Area Layer, select the new Thiessen polygon. For the Flow Boundary Layer, select the shapefile that contains the loading data. Click Next until you finish all of the steps.
I will note that there is already demand data in the model. Was this created using LoadBuilder and your original data? If so, what is the issue that you are seeing? The steps above or the method using your original data appears to be adding demand data to the nodes in the model.
Thank you again. I will try to follow your recommendations during these days.
To introduce the demand, I:
- Opened the Thiessen polygon file, previouslly obtained with WaterCAD, in QGIS.
- Opened the 'attributes table' and generated the Areas column (which showed the area of each polygon in rows).
- Estimated on my own the total Flow needed (all the water needed inside the boundary layer to satisfy the demand)
- Created a new column called DEMANDAS_Q (demands) with this formula " [Total Flow] * [Polygon Area] / Σ [Polygon Area] "
- Saved the shape file with these new attributes
- Opened it with Load Builder in WaterCAD.
After that, each node had it's own demand charged.
I did what you suggested, but there are still problems with the Thiessen polygons which WaterCAD generates. Based on the shapes generated after using the tool, it seems not to recognise some nodes and do not link any area (neither demand) to them.
I realized that the problem (Demand = 0 l/s) occurs in nodes that are located on the limit of the boundary polygon. Is it possible that WaterCAD does not recognize those nodes for being exactly at the limit? I cannot find other explanation.
I uploaded the new files as WATER NETWORK (.zip)