edit slope direction - Giswater/giswater_dbmodel GitHub Wiki

Multiple options are avaliable to work with sense for conduit on UD projects.

First of all, if system variable edit_slope_direction is true, the direction of the arc is fixed by the slope (UD). By default is [false]. Use true only when your data have a high-degree of quality in order to don't break your sense because otherwise, taking sense from slope data (sys_elev_1 and sys_elev_2) may be dangerous destroying network sense of your work.

As a result, if your variable is true, sense is fixed by slope, and you can reverse it using the inverted_slope column for those conduit with a real inverted slope.

But, how I can reverse my conduits if system variable edit_slope_direction is false? To do this you can proceed using three strategies:

  • Some QGIS tool (or plugin) to reverse arc geometries.
  • Use PgAdmin console: UPDATE v_edit_arc SET the_geom = st_reverse(the_geom) WHERE arc_id = yourArcId
  • Use toolbox function [edit]: gw_fct_reverse_arc (Reverse arc)