Hello,

I am new to GeoTools and I have a question. I am working on a project where I 
will need to take in xml documents that have OGC Filter statements and I will 
have to produce corresponding SQL where statements. I took a quick look at 
version 2.5.1 of GeoTools and saw the class FilterToSQL. However the comments 
for this class note that Geometry Filters cannot be encoded. What exactly does 
this mean? I am looking at instances where I will need to make SQL statements 
from filters that may ask for events that are relevant to locations such as 
show me everything that happened in this bounding box. Would a query like this 
still work, or is bounding box a type of geometry that will not work?

I ask because when I used a program called GeoServer, which uses GeoTools, I 
was able to make WFS queries that used bounding boxes to find specific data. I 
had assumed that GeoTools was doing all of the filter to SQL conversions, does 
anyone know if this so or not?

I also noted in the comments for this class that the reason for the lack of 
support was due to OGC's specifying two ways of doing SQL databases. The 
comments then note that it is possible to add functionality by subclassing off 
of the encoder you need, putting in the proper GeometryFilter visit method, and 
adding filter types. Does anyone know if doing this would allow me to fully 
support all possible OGC Filter statements that I could receive? Also does 
anyone know how much work this would entail? I am just trying to find out if 
GeoTools is still my best option or if I should be looking for another 
solution, any help would be greatly appreciated.

Brett
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to