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

Arcgis 10.2

I currently have a raster file that I want to turn into a set of polygons. This will help me to create specific buffers around certain points. The extent of my values are 0, and 1. When I change from raster into polygon, I end up with polygons for both 0 AND 1. I only want polygons for pixels with value 1. If I have polygons for values of 0, I end up capturing a bunch of empty space that it totally not necessary to the project.

Here is an image of what I am working on (white = 1, black = 0):

enter image description here

share|improve this question
Just reclassify the grid so that 0 is NoData – Dan Patterson Apr 16 '14 at 2:03
Or just extract the 1 using geoprocessing tool 'extract by attributes'…, unless of course you're saying you don't want islands of 0 inside your 1 in which case I would use the geoprocessing tool 'feature to polygon'… to fill the holes before using polygon to raster. – Michael Miles-Stimson Apr 16 '14 at 2:51
I used "Extract by Attributes" the Where formula was "Value = 1." This did the trick. – ian Apr 16 '14 at 17:56

you can use raster calculator to set your 0 values to NoData. Con(condition, value if true, value if false) will set the false value to Nodata if it is left blank.

in your case, you could use

Con(raster== 1, 1)

a more generic code would be

Con(raster!=0, raster)

when you convert to polygon, NoData pixels will be ignored.

Note that you can make something equivalent to the vector buffer using "expand" on your raster.

share|improve this answer
SetNull is the ideal tool to use. – whuber Apr 16 '14 at 14:39

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.