Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using QGIS to work with raster data. I have a raster dataset of a country where each grid cell is assigned a number 1-100. However, the raster is in the format of a rectangle based on the extent of the file, so all of the cells outside of the borders of the country are assigned a 0. I cannot figure out how to create a GeoTIFF that excludes these cells that have a value less than 1. Any ideas? Thanks!

share|improve this question

The usual approach is to set cells with value 0 transparent. Check layer properties "Transparency" tab and add an entry for the value 0.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.