// create access
final File writeFile = new File(writedir, coverage
.getName().toString()
+ ".tiff");
final GeoTiffAccess storeAccess =
(GeoTiffAccess) factory.process(
DriverOperation.CREATE,
writeFile.toURI().toURL(),
null,
null,
null);
final CoverageStore gridStore = (CoverageStore) storeAccess
.create(name, null, null, null);
// write it down
gridStore.update(request, null);