oh - and I'm using these headers:

import org.geotools.data.DataStore;
import org.geotools.data.DefaultQuery;
import org.geotools.data.FeatureSource;
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.feature.Feature;
import org.geotools.feature.FeatureCollection;
import org.geotools.feature.FeatureType;
import org.geotools.referencing.CRS;
import org.opengis.filter.BinaryLogicOperator;
import org.opengis.filter.FilterFactory2;
import org.opengis.filter.expression.Expression;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.NoSuchAuthorityCodeException;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.MathTransform;

Quoting Jody Garnett <[EMAIL PROTECTED]>:

> Darn this sounds messy.
> > (Sorry for the duplicate post, but thought it better to include a subject
> line.)
> > I'm a geotools newbie, but I've setup geoserver and am querying it via
> wfs.
> > I've created a client application using geotools 2.2.4 (I did not find it
> easy 
> > from scratch with the doco thats available)
> Can you help us update the docs?
> > , I construct a filter and add it to 
> > a query from which I get results. the trouble is that the query only ever
> sends 
> > a this query and never includes my filter (it does use maxFeatures and
> typeName 
> > settings though). 
> > eg: from serverlog -
> > <?xml version="1.0" encoding="UTF-8"?>
> > <GetFeature xmlns="http://www.opengis.net/wfs";
> xmlns:gml="http://www.opengis.net
> > /gml" xmlns:ogc="http://www.opengis.net/ogc"; version="1.0.0" service="WFS"
> outpu
> > tFormat="GML2" maxFeatures="10"><Query
> typeName="sde:TOPO.GAZETTEER"></Query>
> > </GetFeature>
> >
> > the filter does get used - but its run clientside.
> >   
> I can see - can you tell me the filter code? I we should be able to add 
> this to the GeoServerOnlineTest and reproduce the problem.
> 
> I have two ideas:
> - it is easy to construct an invalid filter that GeoServer cannot handle 
> (I think there is a compatibility switch somewhere?)
> - It could be that the changes to the "FilterCapablities" used to make 
> the SQLEncoder happy have messed up the WFSDataStore.
> 
> Much like with Tim last week we will do better to go through this kind 
> of thing on IRC.
> > how can I force geotools to send a complete wfs query to the server?
> grabbing 
> > all that data from the server for clientside processing is very slow.
> >   
> I don't think it is a matter of forcing - your Filter should of been 
> used. Can we go through your filter check out what is being asked?
> 
> Cheers,
> Jody
> 




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to