Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

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 currently using the gdal_rasterize tool in bash. My code looks like this:

gdal_rasterize -l $(basename $file .shp) -burn 1  -a_nodata 0 -te -180 -90 180 90 -tr 0.1 0.01 -at -ot Byte $file $OUTPUT/rast_2.tif

I was hoping that the -at function would give a '1' burn value to any pixel touched by the input shapefile. However, this is what the comparison looks like:

Areas not rasterized properly

Is this the a problem with the -at ALL_TOUCHED function or should I be doing something differently to ensure that all areas are accounted for?

Any help much appreciated

share|improve this question
What version of GDAL are you using? – kyle Dec 12 '12 at 22:00

Peculiar, I would just post a comment but apparently I don't have enough points. Two questions: What version of gdal and is the output exactly the same without '-at'?

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.