Michael Bedward ha scritto:
> Hi Andrea,
> 
>> Eh... what we really need is a complete overhaul of those classes,
>> they were conceived for just vector data and has been hacked upon
>> until this messy situation.
> 
> So GridMapLayer and GridReaderMapLayer ?  Or do you mean more
> fundamental changes than that ?

Much more fundamental. A new rendering architecture that can
render "things" on a graphics, each layer containing one of these
and be able to render itself (or having a lookup system that
can find an appropriate renderer for it).

What if we want to render grids as vectors or isolines dinamically,
or we want to add animations, or decorations, and so on?
The current rendering setup does not allow for such use cases.


>> PropertyDescriptor grid = type.getProperty("grid");
>> if(grid == null)
>>  return false;
>> Class binding = grid.getType().getBinding();
>> return AbstractGridCoverage2DReader.class.isAssignableFrom(binding) ||
>>       GridCoverage.class.isAssignableFrom(binding);
>>
> 
> That's what the MapLayerUtils helper did until recently.  I changed it
> to just look at the class name in my quest to avoid loading the
> coverage classes when not absolutely necessary after the FOSS4G
> workshop feedback.  But as Stefan's issue makes clear, my hack was a
> very cheap and unreliable one.

The coverage classes are needed by the renderer anyways no? If you want
to duplicate the logic to match 1-1 first make sure the style has
a raster symbolizer, if so, check if you have a grid.
If we had a renderer like the one I'm talking above we could have
the coverage rendering subsystem be a plugin and avoid the dependency
completely if you're sure that you're just going to render vector data.

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to