On Mar 24, 6:11 pm, "Martin Davis" <
mtncl...@gmail.com> wrote:
> Hi, Keith.
>
> Easy handling of tables and geometry are what JEQL is all about!
>
> For (1), you would write:
>
> spatial_join = select
subdivision.name,
points.id
> from subdivision join points on Geom.intersects(points.GEOM,subdivision.GEOM
> );
>
> IN JEQL SQL, joins are always expressed using the JOIN notation. Also,
> currently only one JOIN per select is supported (but you can mimic more by
> creating several tables in succession)
>
> 2) Looping is (for now) always expressed using select expressions. So the
> case you mention is handled in exactly the same way as (1) above - using a
> JOIN to combine the input tables, and then pulling out the combinations that
> you want by using an ON condition. (This is identical to how SQL works, if
> you're familiar with that paradigm).
>
> There may be situations where explicit looping is desireable - but I'm
> trying hard to make JEQL powerful enough that it isn't needed.
>
> M
>