Point-based building (Water Overlay): Difference between revisions
Jump to navigation
Jump to search
Created page with "Point based buildings are constructions for which their geometry is interpreted as a single point. Examples of point based buildings are the following hydraulic structures: {| {{STDT|overlay sortable}} |- ! style="width:50px" | Icon !! style="width:100px; text-align:left;" | Name !! style="text-align:left;" | Name |- |style="text-align:center;"|50px |Inlet |Conditional flow from external area t..." |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 32: | Line 32: | ||
<li style="display: inline-block;">[[File:centroid5.png|thumb|x150px|top|left|Case two: Multi polygon.]]</li> | <li style="display: inline-block;">[[File:centroid5.png|thumb|x150px|top|left|Case two: Multi polygon.]]</li> | ||
</ul></div> | </ul></div> | ||
In case one, the | In case one, the building's geometry is a complex polygon. Its centroid lies outside its geometry.<br> | ||
In case two, the | In case two, the building's geometry is a multi-polygon. Its centroid is in between the two rectangle polygons.<br> | ||
Generally, these kind of polygons are undesirable for a point-based building. | Generally, these kind of polygons are undesirable for a point-based building. | ||
| Line 40: | Line 40: | ||
*The geometry should consist of only one polygon. In the case of buildings, use only one [[section]]. | *The geometry should consist of only one polygon. In the case of buildings, use only one [[section]]. | ||
{{article end | |||
* https://en.wikipedia.org/wiki/Centroid | |seealso= | ||
* https://en.wikipedia.org/wiki/Centroid | |||
}} | |||
{{Water Module buttons}} | {{Water Module buttons}} | ||
Latest revision as of 12:44, 25 February 2026
Point based buildings are constructions for which their geometry is interpreted as a single point.
Examples of point based buildings are the following hydraulic structures:
| Icon | Name | Name |
|---|---|---|
| Inlet | Conditional flow from external area to inlet location. | |
| Sewer overflow | Conditional flow from sewer to waterway, based on sewer overflow height. |
Center point
A method to obtain a point from a geometry is to calculate the geometric center point of a geometry. The method used by Tygron Platform is similar to [1]. See the following examples:
The method above is simple, but not robust in all cases. See the following two cases:
In case one, the building's geometry is a complex polygon. Its centroid lies outside its geometry.
In case two, the building's geometry is a multi-polygon. Its centroid is in between the two rectangle polygons.
Generally, these kind of polygons are undesirable for a point-based building.
General advice
- The point-based buildings should be supplied as simple rectangle or circular polygons.
- The geometry should consist of only one polygon. In the case of buildings, use only one section.









