[OpenLayers-Dev] [OpenLayers-Users] convert SQL statement to OGC filter

Tim Schaub tschaub at opengeo.org
Tue Mar 16 11:51:47 EDT 2010


Gabriel Nolasco wrote:
> Hello,
> 
> This is not an OpenLayers specific question, but I'll try my luck in this large GIS developers community...
> I'm trying to convert a SQL statement into an OGC filter.
> My approach was to use javascript string methods to match the operators, create the respective OpenLayers filters and then use OpenLayers Format Filter to write the OGC filters.
> This is working fine for simple statements but very buggy when the complexity of the statements increases.
> Does anyone know a better way to perform it using only javascript?
> 

Hey-

Are you using CQL or another flavor of SQL?

I'd be interested in working on a CQL format in OpenLayers.  This would 
serialize an OpenLayers.Filter as CQL and deserialize a CQL string as a 
filter.

If you have anything started (and you're working with CQL), a patch for 
this ticket would be a good way to start collaborating.

http://trac.openlayers.org/ticket/2522

Tim

> Thanks in advance,
> Gabriel Nolasco
> 
> 
>       ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Dev mailing list