Add a coverage property SourceUrl for NetCDF and ImageMosaic readers that can be discovered by NetCDFOutputManager in GeoServer gs-netcdf-out. The property is a URL for the source of the coverage.
SourceUrl
NetCDFOutputManager
URL
Backported to 17.x.
Merged on master.
the coverage does not represent the full contents of the file so OriginalFileSource cannot be used. The source NetCDF/GRIB file may contain other coverages. Furthermore, http and dods protocols are also supported, not just file:https://github.com/geotools/geotools/blob/master/modules/plugin/coverage-multidim/netcdf/src/main/java/org/geotools/coverage/io/netcdf/NetCDFAccess.java#L94As a consequence, NetCDFReader stores the source as a URL not a File:https://github.com/geotools/geotools/blob/master/modules/plugin/coverage-multidim/netcdf/src/main/java/org/geotools/coverage/io/netcdf/NetCDFReader.java#L142
OriginalFileSource
http
dods
file
NetCDFReader
File
Seems like you are re-implementing, at least partially, what's already there?https://github.com/geotools/geotools/blob/master/modules/library/coverage/src/main/java/org/geotools/coverage/grid/io/GridCoverage2DReader.java#L108
Add a coverage property
SourceUrl
for NetCDF and ImageMosaic readers that can be discovered byNetCDFOutputManager
in GeoServer gs-netcdf-out. The property is aURL
for the source of the coverage.