How to Select linestring outside multipolygon

瀏覽次數:13 次
跳到第一則未讀訊息

giuseppe

未讀,
2015年3月1日 下午3:15:362015/3/1
收件者:spatiali...@googlegroups.com
I'm going crazy about this task that seems to be east but every time don't work!

While intersect a multilinestring with a polygon is very easy :

CREATE TABLE tabl as
SELECT a.1, a.2, ....
st_multi(st_intersects(a.geometry,s.geom))as geom
from t1 a as a, t2 as s
where
st_intersects(a.geometry,s.geom)=1 and
 a.ROWID IN (
    SELECT ROWID 
    FROM SpatialIndex
    WHERE f_table_name = 't1' 
        AND search_frame = s.geom) 


The opposite seems to be very difficult: I need to find the part of the multiline outside the multipolygos.

I've tried everything I'm able to use (Indeed not much) without success.

Any suggestion?
回覆所有人
回覆作者
轉寄
0 則新訊息