# Adding nodata value to ArchGDAL dataset

**URL:** <https://discourse.julialang.org/t/adding-nodata-value-to-archgdal-dataset/81142>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [May 16, 2022, 10:18am UTC](https://discourse.julialang.org/t/adding-nodata-value-to-archgdal-dataset/81142 "2022-05-16T10:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunayana](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sunayana](https://discourse.julialang.org/u/sunayana)\
**Post date:** [May 16, 2022, 10:18am UTC](https://discourse.julialang.org/t/adding-nodata-value-to-archgdal-dataset/81142/1 "2022-05-16T10:18:38Z")

</div>

Hello,  
I am trying to `setnodatavalue!` while creating a dataset, I do not see how to do this with the API. I see it is possible for a RasterBand object. Could someone point be to am example of ArchGDAL where nodata value can be set for an AbstractDataset.

Thanks

---

<div class="post-metadata">

**Author:** ![visr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/visr/32/17204_2.png) [@visr](https://discourse.julialang.org/u/visr)\
**Post date:** [May 16, 2022, 11:18am UTC](https://discourse.julialang.org/t/adding-nodata-value-to-archgdal-dataset/81142/2 "2022-05-16T11:18:35Z")

</div>

This is not possible as far as I know. The nodata value is set on the raster band level.

---

<div class="post-metadata">

**Author:** ![sunayana](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sunayana](https://discourse.julialang.org/u/sunayana)\
**Post date:** [May 16, 2022, 4:25pm UTC](https://discourse.julialang.org/t/adding-nodata-value-to-archgdal-dataset/81142/3 "2022-05-16T16:25:04Z")

</div>

Thanks. then I go the the RasterBand way.
