On Thu, Jul 14, 2011 at 4:50 AM, Andrea Aime <[email protected]> wrote: > On Thu, Jul 14, 2011 at 4:33 AM, Gabriel Roldan <[email protected]> wrote: >> I guess that holds true for vanilla gwc, but as mentioned above, >> embedded geoserver layers do use the same rendering path than >> geoserver's WMS, which in turn calls ImageWorker if I'm not mistaken, >> and the specific subclass of RenderedImageMapResponse will take care >> of calling the appropriate ImageWorker method as well of any extra >> image preparation, right? > > Nope, this is not about image preparation, it's image encoding. > If you do meta-tiling I expect you to get the image rendered by the WMS, > clip it into 9-16 parts and encode in jpeg. That part is the one that breaks, > because all tiles but the one in the upper/right corner will have an origin > other than 0,0 > That's where you need to use image worker, when encoding the image > in jpeg
And that's what I mean. Though reading back in my previous email I should have sayd embedded layers use the same encoding than geoserver, not the same rendering. Though that also holds true, it was not the point. At the time of saving the tiles out from the metatile, the following line of code gets a org.geoserver.wms.map.JPEGMapResponse: <https://github.com/groldan/geoserver_trunk/blob/master/gwc/src/main/java/org/geoserver/gwc/layer/GeoServerMetaTile.java#L63> which in turn calls ImageWorker, which in turn takes care of the origin issue. Cheers, Gabriel > > 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 > > ------------------------------------------------------- > -- Gabriel Roldan OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
