Another case where introducing a base class will help out.
From aaime's email:
- GridCoveageLayer and GridReaderLayer really need a GridLayer
base class, right now to recognize if a layer is raster one has
to make two instanceof, two casts, and if the code relying on the
ability to extract a feature source out of the layer is hard to
change, two casts to call the toFeatureCollection() method that
- GridReaderLayer constuctors force one to specify the title to
pass also the parameters. Title might not be always needed,
but some readers will not give the best without custom param
settings. Please add a constructor wtih reader, style and params
I am taking a chance to call this RasterLayer as we find people look for the word "raster" when trying to place an image on a map for the first time.