I'm using Polygon to Raster tool to create a raster (10x10). The problem is that some cells of the output raster is not assigned any value.

My understanding is that the tool always uses the cell center to decide the value of a raster pixel. Attached is the result when I overlay both the output raster and Input polygon on ArcMap. (Black is the NoData cell).

Anyway to include all those cells that fall within the polygon when generating the raster?enter image description here I tried to use Feature Vertices to Points to generate the point and convert the points to raster, but the vertex of the polygon that I used only have 1 vertex.

Another item to note is when using smaller cell size (1x1), the raster cell generated are good but when I resample it to 10x10, the output raster from resampling is the same as above raster.

2 Answers 2


The Polygon to Raster tool is behaving as expected. For the areas you have highlighted in red - the cell centers are outside your data area and are given a no_data value in the output raster. The tool builds the raster from the lower left corner of the feature envelope.

You could build a simple model like the one below to (assuming all cells representing your polygon will have the same value): enter image description here

With your polygon as the input,

  1. Connect it to the Feature Envelope to Polgyon Tool
  2. Generate a grid - using the Grid Index Feature Tool (set polygon size to desired cell size). Input from step 1.
  3. Make Feature Layer. Input from step 2.
  4. Select Layer By Location. Result from step 3 as input feature and your input polygon as the selecting feature
  5. Copy Features (save to disk if required) otherwise connect output from step 4 to step 6.
  6. Polygon to raster (specify value field and cell size).

Step 4 will give you something like this: enter image description here

and step 6:

enter image description here

Add an extra step to control the values of your output raster

  • The same problem remain when I used 10 x 10 in Step 6 above. But I learn something new following your steps.
    – Henri Lim
    Commented May 16, 2016 at 11:10

This issue can not be eliminated due to quantization error. But you can expand your rasterized polygons using Expand (Spatial Analyst) tool.

Polygon to raster tool's algoritm restricted to add new raster cell if feature overlaps the cell by more than 50 percents. So you just lose raster cells that covered by feature less that 50%. You could try to make your own rasterization algorithm but it's hard.

Quantization error appears when you try to split continual signal (your round polygon) into segments (raster image). The more your segment (pixel size), the more error. You can not fully eliminate that error because original signal is continuous, but you can make this error very small in comparison with signals period.

  • 1
    for the benefit our users (myself included), could you please provide a bit more detail about the quantization error you mentioned in your answer?
    – Nxaunxau
    Commented May 16, 2016 at 9:24
  • As of now, need to expand the cell by 1, alternatively can create my own array and convert to raster as suggested here geonet.esri.com/thread/177124
    – Henri Lim
    Commented May 16, 2016 at 11:15
  • @Nxaunxau Added new information as you mentioned. Commented May 16, 2016 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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