DELETE FROM geometry_columns WHERE f_table_name = 'puntigronda';<div><br></div><div>Query returned successfully: 0 rows affected, 0 ms execution time.</div><div><br><div>INSERT INTO geometry_columns (f_table_catalog,f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid,type) </div>
<div> VALUES ('','', 'puntigronda', 'the_geom', 3, 3004,'POINTS');</div><div><br></div><div>Query returned successfully: 0 rows affected, 16 ms execution time.</div><div><br></div>
<div>select relkind from pg_class where relname = 'geometry_columns';</div><div><br></div><div>returns:</div><div>"v"</div><div><br></div><div>What is this?</div><div><br></div><div>By the way</div><div>
If my technique works, is it still better to explode the "entities" table in one of this cases:</div><div><br></div><div>a) single layers</div><div>b) same kind of geometries</div><div><br></div><div>in both cases table permanent.</div>
<div><br></div><div>This because I cannot remove the entities geometry column unless I remove the entity table first.</div><div>And if I don't remove (or make invisible to qgis if possible) the entities geometry column it slow down the qgis connection.</div>
<div><br></div><div>Thanks for your help</div><div>Pietro</div><div><br></div><div class="gmail_quote">2012/10/22 Sandro Santilli [via PostGIS] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5000685&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Mon, Oct 22, 2012 at 08:40:07AM +0200, Pietro Rossin wrote:
<br><br></div><div class="im">> DELETE FROM geometry_columns WHERE f_table_name = 'puntigronda';
<br></div><div class="im">...
<br>> Is there something wrong?
<br><br>What's wrong is that the "geometry_columns" table should be a view,
<br>in PostGIS-2.0. If it is a view, your DELETE and INSERT and UPDATE
<br>to it should have no effect.
<br><br>Can you verify this first ?
<br>The DELETE/INSERT/UPDATE commands all return the number of affected
<br>rows. If PostGIS is correctly installed you should alwyas get 0,
<br>no matter what you try to insert/delete/update.
<br><br>Also check:
<br>select relkind from pg_class where relname = 'geometry_columns';
<br><br></div><div class="im">--strk;
<br><br> <a href="http://www.cartodb.com" rel="nofollow" link="external" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your data
<br><br> ~~ <a href="http://strk.keybit.net" rel="nofollow" link="external" target="_blank">http://strk.keybit.net</a>
<br><br>_______________________________________________
<br>postgis-users mailing list
<br></div><a href="http://user/SendEmail.jtp?type=node&node=5000684&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" rel="nofollow" link="external" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br>
<br>
<hr noshade size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
</div><a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000684.html" target="_blank" rel="nofollow" link="external">http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000684.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from How to make some geometry column visible to Qgis, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://postgis.17.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div></blockquote></div><br></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000685.html">Re: How to make some geometry column visible to Qgis</a><br/>
Sent from the <a href="http://postgis.17.n6.nabble.com/PostGIS-User-f3516033.html">PostGIS - User mailing list archive</a> at Nabble.com.<br/>