hi, <br>why don't you merge both operations into one sql-command? <br>In this case it's less difficult without using views.<br><br><br><br><div class="gmail_quote">2010/5/21  <span dir="ltr"><<a href="mailto:jj.wag@gmx.de">jj.wag@gmx.de</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
I have a polygon table (alk_flurstuecke) and create a view with a 40-meter buffer on an object:<br>
<br>
CREATE VIEW buffer_flur_40 AS<br>
SELECT gid, ST_SetSRID(st_buffer(the_geom,40), 31466 )<br>
AS the_geom FROM alk_flurstuecke WHERE fkz = '0726900330002300000';<br>
<br>
No problem, Ican see it in QGIS.<br>
Now I try to make an intersection on this buffer-view with my table:<br>
<br>
CREATE VIEW intersect_flur_40 (gid, flur, zaehler, nenner, the_geom) AS<br>
SELECT p.gid, p.flur, p.zaehler, p.nenner, ST_SetSRID(ST_Intersection(p.the_geom, b.the_geom) ,31466)<br>
AS the_geom FROM alk_flurstuecke AS p, buffer_flur_40 AS b<br>
WHERE p.fkz <> '0726900330002300000' AND IsEmpty (ST_Intersection(p.the_geom, b.the_geom) ) = FALSE;<br>
<br>
This view is created without errors too but there is no result. If I try to load the view in QGIS it diapears.<br>
Any idea?<br>
<br>
Jo <br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>