On 26 mar, 20:53, "Martin Davis" <
mtncl...@gmail.com> wrote:
> Thomas,
>
> I'm puzzled by the run output that you give. Do you mean that Jeql still
> throws an error, or just that it takes a long time?
Reading your 1st mail, I thought that storing one of the 2 "tables" in
memory (using "order by") will be enough for the join query to
succeed. But, it seems not to be the case. The 2nd one must also be
stored. Following script does not crash any more :
basedir = "/home/leduc/data/datas2tests/shp/mediumshape2D/";
tta = null;
ShapefileReader tta file: basedir + "landcover2000.shp";
ta = select * from tta order by gid;
ttb = null;
ShapefileReader ttb file: basedir + "bzh5_communes.shp";
tb = select * from ttb order by OBJECTID;
tt = select Geom.intersection(ta.GEOMETRY,tb.GEOMETRY) from ta join tb
on Geom.intersects(ta.GEOMETRY,tb.GEOMETRY);
t = select count(*) from tt;
Print t;
-> Run completed in 2812 ms !
Ok, nice.
Many thanks.
PS : "Memorize" option is an interesting one, so as the ability to
garbage collect corresponding object on demand... I mean flush the
corresponding table on disk and not "Memorize" it any more to free
memory.