On Sun, Jun 5, 2011 at 1:59 AM, Jody Garnett <[email protected]> wrote: > Quick Question Andrea: > The other renderers in GeoServer - do they implement the GTRender interface > (if so I would like to make a note in the docs).
Nope they don't. In GeoServer there are a number of things that are pure streaming transformers, they take one or more objects (map context, feature collections, other EMF stuff) and transform them into some format which is written directly to a stream. All of the KML, RSS, Atom, streaming SVG and HTML image map things fall in that category. They are "encoders" of sorts, we don't have such a general concept in GeoTools if you exclude the various forms XML Encoder/Transformer classes. In GeoServer they are generally captured by the Response hierarchy: http://svn.codehaus.org/geoserver/trunk/src/ows/src/main/java/org/geoserver/ows/Response.java The Response is part of the dispatch system, which takes a HTTP requests, parses it into an object form representation, finds the service that can answer to it, grabs an object generated by the service and passes it over to the Response for encoding to some serialization format. A response is thus responsible for taking an "object", saying it can handle it, say which mime types it can generate, and do the encoding if the object type and the output mime type match was was requested by the caller, all in the context of the current "Operation", which summarizes both the parsed http request parameters, the service object that was chosen and the method to call on the service object. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
