diff --git a/README.md b/README.md index 7b157ff..811564e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,9 @@ In many applications, it is interesting to have some metadata about the rasters | Field Name | Type | Description | | ------------ | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | raster:bands | \[[Raster band Object](#raster-band-object)] | An array of available bands where each object is a \[[Band Object](#raster-band-object)]. If given, requires at least one band. | +| raster:sparse | boolean | Sparse representation of the raster. If true, the asset is stored in a sparse format (GDAL support only). | +| raster:interleave | string | The interleaving of the raster. (ie: 'pixel', 'band'). | +| raster:compression | The compression used to store the raster. (ie: 'lzw', 'deflate', 'none'). | ## Raster Band Object @@ -45,6 +48,8 @@ to specify information about the raster projection, especially `proj:shape` to s | scale | number | Multiplicator factor of the pixel value to transform into the value (i.e. translate digital number to reflectance). | | offset | number | Number to be added to the pixel value (after scaling) to transform into the value (i.e. translate digital number to reflectance). | | histogram | [Histogram Object](#histogram-object) | Histogram distribution information of the pixels values in the band. | +| block_size | array[int] | A tuple (width/height), specifying the internal block shape of the raster band. | +| color_interpretation | string | The color interpretation of the band. (ie: 'red', 'green', 'blue', 'alpha', 'undefined'). | `scale` and `offset` define parameters to compute another value. The following paragraphs describe some use cases. diff --git a/json-schema/schema.json b/json-schema/schema.json index 2a3e53e..8abbd52 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -79,6 +79,22 @@ "properties": { "raster:bands": { "$ref": "#/definitions/bands" + }, + "sparse": { + "title": "Sparse representation of the raster. If true, the asset is stored in a sparse format (GDAL support only).", + "type": "boolean" + }, + "interleave": { + "title": "The interleaving of the raster. (ie: 'pixel', 'band').", + "type": "string", + "enum": [ + "pixel", + "band" + ] + }, + "compression": { + "title": "The compression used to store the raster. (ie: 'lzw', 'deflate', 'none').", + "type": "string" } }, "patternProperties": { @@ -164,6 +180,23 @@ "title": "Average spatial resolution (in meters) of the pixels in the band", "type": "number" }, + "block_size": { + "type": "array", + "title": "Internal block shape of the file.", + "description": "A tuple (width/height), specifying the internal block shape of the raster band.", + "prefixItems": [ + { + "type": "integer" + }, + { + "type": "integer" + } + ] + }, + "color_interpretation": { + "title": "The color interpretation of the band. (ie: 'red', 'green', 'blue', 'alpha', 'undefined').", + "type": "string" + }, "statistics": { "title": "Statistics", "type": "object", @@ -231,4 +264,4 @@ } } } -} +} \ No newline at end of file