Hi John and Guy,
----- Original Message -----
> From: "John Caron" <caron@xxxxxxxxxxxxxxxx>
> One workaround would be to construct the NcML as a string in memory
> and pass it to NcMLReader.readNcML () with a ByteArrayInputStream:
> [...]
This is what we are doing in our Raster Storage Archive (RSA [1] / SpatialCube
[2]). We have code for constructing an NCML dataset in-memory, and it's
available under the GPL v3. The code to look at is in this directory:
https://github.com/VPAC/rsa/tree/master/src/storagemanager/src/org/vpac/ndg/datamodel
- AggregationDefinition is the data model (XStream-based)
- AggregationFactory has methods for constructing the model
- AggregationOpener converts the model to NCML and opens the aggregated dataset
There's also RsaAggregationFactory which has special code for interacting with
our data store.
Cheers,
Alex
--
Alex Fraser
Software Engineer
VPAC Ltd.
[1] https://github.com/vpac/rsa
[2] http://vpac-innovations.com.au/work/spatialcube