use of org.apache.sis.coverage.SampleDimension in project sis by apache.
the class AbstractGridResource method createMetadata.
/**
* Invoked the first time that {@link #getMetadata()} is invoked. The default implementation populates
* metadata based on information provided by {@link #getIdentifier()}, {@link #getGridGeometry()} and
* {@link #getSampleDimensions()}. Subclasses should override if they can provide more information.
*
* @param metadata the builder where to set metadata properties.
* @throws DataStoreException if an error occurred while reading metadata from the data store.
*/
@Override
protected void createMetadata(final MetadataBuilder metadata) throws DataStoreException {
super.createMetadata(metadata);
metadata.addSpatialRepresentation(null, getGridGeometry(), false);
for (final SampleDimension band : getSampleDimensions()) {
metadata.addNewBand(band);
}
}
Aggregations