Cory Horner wrote:
Well... i've given up for today... uDig and Geoserver WFS just aren't getting along! Rendering works fine, but thematic styling only works partially (on a WFS layer, Change Style...> Theme > click a pallette).

Geoserver spits out lots of this:

java.lang.RuntimeException: Error reading Features
at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureReader(FeatureTransformer.java:426) at org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransformer.java:396)
So GeoServer is not used to clients hanging up on it? I bet you are making requests based on user interface events, and are not paying attention to if any outstanding requests are already in process...
uDig shouts back:

21-Apr-2006 10:14:15 PM org.geotools.xml.XMLSAXHandler endElement
WARNING: Stopping

It seems uDig (geotools) is making 4 requests to the server simultaneously? Any thoughts on what is going on? I need a good peek at those xml streams...
If it is a bug I imagine you are either:
- issuing too many requests
- not waiting long enough for the user interface state to settle down before making a request for your summary info
- asking a bunch of "summary" questions at once

I assume the summary questions are issues in inorder to figure out what the data looks like. While this information should be available in metadata (or via an extended get capabilities) I have not made any progress in interesting the OGC people in using WFS
in this direction.

Short Term Solution:
Alternative 1: take a "representative sample" (first 1000 features) - hold it in memory - and use it to answer your questions as the user interface state changes.

Long Term Solutions:
Alternative 2: extends the WFS specification with additional operations to get the information you need - so you can get the unique values of attribute "category" for example, or the min/max of "height". Alternative 2: extend the WFS specification with a vendor parameters for "Sample" which would ask for a sample set defining the range of values possible ...

And so on ...

Jody




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to