1

I am using the Extract by Mask tool in ArcGIS. The tool is extracting all the cell that intersect the masking layer. Is there a process to mask only the cells that fall completely within the making layer ! That means cells which have some-part outside the masking layer should be excluded. As per request by Hornbydd I have added this image. It looks like cells with approximately 50% or more overlap with the masking layer are selected in the process. enter image description here

  • 2
    It appears that you have been on GIS SE for a while, but you haven't followed the instructions on the Tour page. Please post only one question at a time. Also, if possible, provide an example of what you have done so far. – Vijay Ramesh Apr 10 '17 at 13:44
  • 1
    Can you edit your question to show us an example of just how much overlap there is? It's not clear if your mask layer is a different cell size, is it vector that is getting rasterized, if so have you snapped raster? A picture would be very helpful. – Hornbydd Apr 10 '17 at 16:00
2

This rule cannot be applied by default, but the workaround is to use negative buffer.

  • if your mask is a raster, you can shrink you mask by one pixel with the shrink tool.

  • if your mask is a feature class, the cells whose center are within the feature class will be taken. If you apply a negative buffer of "square root of 2" time the pixel size, then none of the pixels will be outside of the original mask.

2

The extract by mask tool that you used gave you the correct result based on the raster resolution of your image. The cell size or raster resolution of the image is coarse compared to the mask polygon, and if the raster pixel center is located within the polygon, it will be presented in the result after running extract by mask. However, if the raster pixel center is not located within the polygon, it will be excluded from the result.

You may need to use Resample tool to change the spatial resolution of the raster image by decreasing the pixel size. After changing the spatial resolution, you can run extract by mask to include more pixels with the mask polygon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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