Raster with 0 - 0 range creation

Greetings to all.

I have a polygon type shapefile that I upload it in Rstudio. How can I create first a raster of this polygon shapefile? Finally, I want to create a mask of the produced raster that will have a range from 0 to 0 values. Can you help me? / provide tips or code?

Thank you very much in advance

You could rasterise a polygon, then assign all the values to zero.

rasterize: Rasterize vector data in terra: Spatial Data Analysis (rdrr.io)

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.