Skip to content

Write a coverage in netCDF - #100

Merged
estebanzimanyi merged 1 commit into
masterfrom
feat/coverage-netcdf
Nov 21, 2026
Merged

estebanzimanyi merged 1 commit into
masterfrom
feat/coverage-netcdf

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

A coverage is negotiated as netCDF through application/x-netcdf, the
media type /req/netcdf/coverage of OGC API - Coverages states, and
written by MobilityDB's asGDALRaster in GDAL's netCDF format; the
collection links its coverage in that encoding beside GeoTIFF and
CoverageJSON, and the class netcdf of the Coverages draft is declared.
The netCDF document names its dimensions lon and lat, or x and y in a
projected system, each with a netCDF standard name, and a coverage of
one period has no time dimension, so no dimension falls under the rule
naming a variable after the collection's extent.

Witness: TestLiveRasterCollection asks the January coverage and its
bbox clip as netCDF and reads the answer's media type, the netCDF
signature, and the width and height MobilityDB reads back from it.

Measured: on MobilityDB master before its writer wrote a format whose
library writes only to a file, asGDALRaster(r, 'netCDF') answered no
document; with it, the coverage of January reads back as its 4 x 2
grid and the clip as its 2 x 2.

A coverage is negotiated as netCDF through application/x-netcdf, the
media type /req/netcdf/coverage of OGC API - Coverages states, and
written by MobilityDB's asGDALRaster in GDAL's netCDF format; the
collection links its coverage in that encoding beside GeoTIFF and
CoverageJSON, and the class netcdf of the Coverages draft is declared.
The netCDF document names its dimensions lon and lat, or x and y in a
projected system, each with a netCDF standard name, and a coverage of
one period has no time dimension, so no dimension falls under the rule
naming a variable after the collection's extent.

Witness: TestLiveRasterCollection asks the January coverage and its
bbox clip as netCDF and reads the answer's media type, the netCDF
signature, and the width and height MobilityDB reads back from it.

Measured: on MobilityDB master before its writer wrote a format whose
library writes only to a file, asGDALRaster(r, 'netCDF') answered no
document; with it, the coverage of January reads back as its 4 x 2
grid and the clip as its 2 x 2.
@estebanzimanyi
estebanzimanyi merged commit 65cbbff into master Nov 21, 2026
3 of 4 checks passed
@estebanzimanyi
estebanzimanyi deleted the feat/coverage-netcdf branch November 21, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant