<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 7:35 AM, Piotr Kania <span dir="ltr"><<a href="mailto:p.kania@op.pl" target="_blank">p.kania@op.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":3sz" class="" style="overflow:hidden">In my postgis database I have multipolygon layer 'public.polygons' (gid,geom), I'd like to see vertices of those layer during editing, that's why I thought of postgis view. I create that in database:<br>
<br>
CREATE VIEW points_of_polygons AS SELECT ST_DumpPoints(geom) AS geom FROM public.polygons;<br>
<br>
But I can't add that view to Qgis, I found that info:</div></blockquote></div><br>Views are not selectable from the Add PostGIS icon. But starting in version 2.10 you can add the view points_of_polygons by using the DB Manager. A unique id is no longer required. If you are using an earlier version then you'll need to create a unique row number. The stackexchange link you provided gives an example of using ROWNUMBER() OVER() to create the unique id. <br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>@osm_seattle<br></div><div><a href="http://osm_seattle.snowandsnow.us" target="_blank">osm_seattle.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div>
</div></div>