On Sat, May 7, 2011 at 9:04 AM, Andrea Aime <andrea.a...@geo-solutions.it>wrote:
>
> Yep it is, I just completely forgot it was there to start with
>
Had another look at the proposal, setup as it is it will be harder than
necessary to handle
the switch of StreamingRenderer the Layer/MapContext API as the design of
streaming
renderer is style oriented, and the hierachy of Layer has getStyle() just as
an afterthought.
This is problematic in that it's the style that tells you if a layer is
active, what parts of
the data you're going to read and so on. It's the style that tells you if a
raster layer
is going to be painted as raster or as vector (one can apply a polygon
symbolizer to
rasters and just have the bounds be painted).
So I'd say that a first step to get things moving would to be a StyledLayer
class
acting as the base class of FeatureLayer, GridReaderLayer and CoverageLayer
/**
* Styled layer: data, in some form, with a style. The opposite of a
DirectLayer,
* that draws itself instead of declaring what data to be painted, and how
*/
StyledLayer extends Layer {
getStyle();
setStyle(...)
}
The second thing that is not clear in my mind is the relationship between
DirectLayer
paint method, the MapViewport in a MapContent, and GTRenderer various paint
methods.
So the MapViewport contains the current area on screen... which is pretty
much
the same information provided to the paint methods, but in a different way.
And then the renderer should provide the direct layers with a viewport, but
one derived from the paint method arguments...
Isn't this confusing?
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
-------------------------------------------------------
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel