Mauricio Pazos ha scritto: > Hi list, I am working in the TXT proposal > http://docs.codehaus.org/display/GEOTOOLS/Extention+of+CQL+to+match+abilities+of+Filter > > A week ago, we was analysing a possibility to improve the spatial relation > predicates. > > Nowadays, TXT implements the spatial predicate - OGC Filter 1.1 - That is > > EQUALS | DISJOINT | INTERSECTS | TOUCHES | CROSSES | WITHIN | CONTAINS | > OVERLAPS | RELATE > > Then you could write > > intersects(g1, g2) > > This is a syntax is very similar to spatial operations > > intersect(g1.g2) > > Then we are thinking to improve the grammar with an alternative syntax, it > could be: > > geom1 INTERSECTS geom2 > > geom1 TOUCHES geom2 > > geom1 EQUALS geom2 > > geom1 DISJOINTS geom2 > > geom1 CROSSES geom2 > > geom1 WITHIN geom2 > > geom1 CONTAINS geom2 > > geom1 OVERLAPS geom2 > > geom1 RELATES geom2 LIKE 'T**F*****' > > geom1 DWITHIN geom2 DISTANCE 10.0 km > > geom1 BEYOND geom2 DISTANCE 10.0 km > > all comment are welcome
Both syntaxes are fine to me, I'd suggest to choose the one that keeps the module the simplest and/or takes less time to implement. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel