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 ?

> 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.

Michael

------------------------------------------------------------------------------
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