So... I've made another GridCoverageExchange implementation (part of the
geoapi API) and found a few things I that I'm having issues with. What
we're doing is we have a FactoryFinder that looks for FormatFactories,
the same as the datastore factories/finders. The factory creates
factory objects, because these are used for format inspection and for
identifying formats. Unfortunately they don't provide anyway to access
the readers and writers. I know this is supposed to be the GCEs job but
if that is the case then each plugin would need a GCE. What I've done
is asked modified the factory to create readers and writers. But I have
to keep a map between formats and factories in order to get the factory
associated with the format.
That's the long version of the story. The short is that I think it
might make sense for the Format objects to have getReader and getWriter
methods.
Cheers
Jesse
|