Hi Chris,
Yes, you should be able to create a FeatureResponseDelegate for KML. Geoserver currently has two, GML2, and Shapefile. Here is a tutorial.
http://docs.codehaus.org/display/GEOSDOC/Create+your+own+Output+Format
So as to your question are the interfaces in question significanly abstract enough, well yes they are for geoserver, but their extensiblity is limited. In this case you are lucky because they have been designed with an extensible output format in mind.
Also, the geoserver team is always looking for developers and contributors. If you do go ahead and develop a KML output format, we would be happy to take it as a contribution and make it part of the core. The benefit for you being a wider exposure to the community resulting in increased testing, robustness. It would also make maintenance easier has you will not have to resync with new versions of geoserver.
-Justin
Chris Logan wrote:
Justin,
I've used Spring in the past with much success, so that is good to hear. Back on my question, can you clarify this for me?
* Does FeatureRequest represent a pure abstraction of a WFS request
for a feature?
* Does GetFeatureResults represent a pure abstraction of a WFS
response for a feature?
* If I wanted to return a response as KML instead of GML, can I
create a new FeatureResponseDelegate implementation?
* I realize that it would be a fair amount of work, but am I on the
right track? We ARE going to do what I described, I just need to
decide upon the best design approach: 1)Modify GeoServer and
resynch with future code drops, 2)Create a web application that
front-ends GeoServer and modifies WFS requests and GML responses.Thanks,
ChrisOn 12/13/05, *Justin Deoliveira* <jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:
Hi Chris,
Unfortunatley the way geoserver is set up right now to be able to do
this could be a significant amount of work for you, and will probably
not be easy.There is currently work going on right now to rearchitect geosever into
something a bit more modular, so that you can do things like you
mention. Also we plan on moving to a micro contrainer architecture
(Spring) so adding these types of things becomes easier.-Justin
Chris Logan wrote:
> Hello,
>
> I am looking at customizing GeoServer so that I can modify a request
> before being processed by the response handler and modifying the
> response after it has been generated. I want to do things such as
> change feature data depending upon scale and other such things.
>
> I have looked at doing such mods on the HTTP request and response,
> perhaps even in a different app that forwards requests to GeoServer.
> I'm also looking at modifying GeoServer to do this, which is why I am
> sending this question.
>
> Is it practical to extend the Feature servlet and override the
> getResponseHandler method to return my subclass which would
extend the
> FeatureReponse class? In my subclass of FeatureResponse, I would
> override the execute method and put my pre and post handling code
around
> a call to the super.execute method.
>
> This sounds like a good design to me, but looking at the execute
method
> of the FeatureResponse makes me wonder if this will be feasible. Any
> advice would be very helpful.
>
> Thanks,
> Chris Logan--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org--
Thanks,
Chris
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org