Re: [postgis-users] performance of intersects(a,b)

2008-03-03 Thread Willy-Bas Loos
>Martin Davis: >There's some new code on the way in GEOS and PostGIS which will improve >the performance of this case. Martin, do you have some specifics about that? ___ postgis-users mailing list postgis-users@postgis.refractions.net http://postgis.refra

Re: [postgis-users] performance of intersects(a,b)

2008-02-28 Thread Willy-Bas Loos
Hi Kis, I don't think the GiST index has anything to do with this, i'm only processing one record. thx, WBL On Thu, Feb 21, 2008 at 7:47 AM, Kis János Tamás <[EMAIL PROTECTED]> wrote: > csütörtök 14 február 2008 15.11 dátummal Willy-Bas Loos ezt írta: > > > > select 'yes' as foo > > from table1 a

Re: [postgis-users] performance of intersects(a,b)

2008-02-28 Thread Willy-Bas Loos
that is, i'm not saying GEOS should work in the way that i describe, i just mean it should know that it has a hit when one of the vertices intersects with the other polygon. Probably i'm seeing things too simple, but i guess never asking is the best way to not get things improved, so i just ask stu

Re: [postgis-users] performance of intersects(a,b)

2008-02-20 Thread Kis János Tamás
csütörtök 14 február 2008 15.11 dátummal Willy-Bas Loos ezt írta: > > select 'yes' as foo > from table1 a, table1 b > where a.gid=4 > and b.gid=4 > and intersects(a.the_geom, b.the_geom) > Did you try the next procedure? create index i_a on table1 usng gist the_geom; create index i_b on table2

Re: [postgis-users] performance of intersects(a,b)

2008-02-18 Thread Paul Ramsey
Right, this: select 'yes' as foo from table1 a, table1 b where a.gid=4 and b.gid=4 and st_intersects(a.the_geom, b.the_geom) seems likely to a LOT less common than select 'yes' as foo from table1 a, table1 b where a.gid=4 and st_intersects(a.the_geom, b.the_geom) and the latte

Re: [postgis-users] performance of intersects(a,b)

2008-02-18 Thread Martin Davis
There's some new code on the way in GEOS and PostGIS which will improve the performance of this case. Bu it won't be anywhere near as fast as your proposed check for an identical start point. The "identical start point" check is great for the particular case of comparing identical polygons.

[postgis-users] performance of intersects(a,b)

2008-02-14 Thread Willy-Bas Loos
Hi, I´ve noticed that intersect(a,b) is slow when i compare a (nice and large) geometry with itself. so the syntax is: select 'yes' as foo from table1 a, table1 b where a.gid=4 and b.gid=4 and intersects(a.the_geom, b.the_geom) This particular polygon has about 10 000 points, and the query runs