Skip to content

Commit

Permalink
Update documentation to remove restriction on modifying existing noDa…
Browse files Browse the repository at this point in the history
…taValue
  • Loading branch information
iGN5117 committed Aug 10, 2023
1 parent b6ec079 commit f734053
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/api/sql/Raster-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ When the bandIndex is RS_NumBands(raster) + 1, it appends the band to the end of

If the bandIndex and noDataValue is not given, a convenience implementation adds a new band with a null noDataValue.

Adding a new band with a custom noDataValue requires bandIndex = RS_NumBands(raster) + 1 and non-null noDataValue to be explicitly specified. Modifying the noDataValue of an existing band is not supported.
Adding a new band with a custom noDataValue requires bandIndex = RS_NumBands(raster) + 1 and non-null noDataValue to be explicitly specified.

Modifying or Adding a customNoDataValue is also possible by giving an existing band in RS_AddBandFromArray

In order to remove an existing noDataValue from an existing band, pass null as the noDataValue in the RS_AddBandFromArray.

Note that: `bandIndex == RS_NumBands(raster) + 1` is an experimental feature and might not lead to the loss of raster metadata and properties such as color models.

Expand Down

0 comments on commit f734053

Please sign in to comment.