Kevin Neufeld wrote:
> Justin Deoliveira wrote:
>> Yup, that is the basic approach. In your subclass you need to also 
>> declare that it can handle spatial filters. See OracleFilterToSQL for 
>> an example of this. You also need to extend the 
>> visitBinarySpatialOperator() method to actual do the encoding. Again 
>> see oracle for a template.
> 
> Yeah, ok, that's what I thought. I have been looking at the oracle code 
> for examples.
> 
>> As for the createFilterToSQL() method not getting called on the 
>> dialect... not sure about that one. What is the case you running and 
>> not seeing it called? A simple query against the datastore?
> 
> Sorry, I should clarify.  It is called in your test cases, but not in 
> geoserver.
> 
> I added this in SQLServerDialect
> 
>     @Override
>     public FilterToSQL createFilterToSQL() {
>         LOGGER.fine("createFilterToSQL called");
>         return new SQLServerFilterToSQL();
>     }
> 
> and enabled logging in GeoServer.
> log4j.category.org.geotools.jdbc=ALL
> 
> I can see all the logging info in geotool.jdbc,  including all the SQL 
> strings being sent to the server ... but the above logging line is never 
> invoked.
> 
> Do I need to do something special in SQLServerDialect (or perhaps the 
> Factory that calls it) so that it knows about the overridden method?
Hmmm...no. I wonder if it is just that your changes are not being picked 
up by GeoServer. I just did a quick test, and I can verify the method 
gets called. So maybe a bit of info about your setup will help. How are 
you running GeoServer? And how are you installing the modified sql 
server extension?
> 
> Cheers,
> Kevin
> 
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to