1
SELECT link,
2
round((st_x((dp).geom))::numeric, 2) AS x_coord,
3
round((st_y((dp).geom))::numeric, 2) AS y_coord,
4
state,
5
hierarchy,
6
obj_id
7
FROM ( SELECT swmm_vw_conduits.name AS link,
8
st_dumppoints(swmm_vw_conduits.geom) AS dp,
9
st_npoints(swmm_vw_conduits.geom) AS nvert,
10
swmm_vw_conduits.state,
11
swmm_vw_conduits.hierarchy,
12
swmm_vw_conduits.obj_id
13
FROM tww_app.swmm_vw_conduits) foo
14
WHERE (((dp).path[1] <> 1) AND ((dp).path[1] <> nvert));