0

I'm trying to identify raster cells by location to eventually convert them to vector polygons, and then add them to an existing vector layer. Below is a picture to illustrate the problem.

The green layer is raster and the purple is the polygon. Is it possible to add raster cells that intersect the polygon within a given distance (notice how there are portions of the raster off to the far left that would be problematic if I just converted to a polygon now and then did a union). Ultimately I want to identify areas for a given distance, then be able to convert to vector so I can union it with the existing purple polygon.

Is this possible? Everything I've searched for regarding selection of raster suggests using Zonal Stats - but that's not necessarily what I'm trying to accomplish here. Any suggestions or alternatives?

enter image description here

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Aug 21, 2019 at 16:16

1 Answer 1

0

I'm still a little confused about your end goal (polygonize all raster cells within a certain distance of the purple polygon?), but I think the Extraction toolbox in Spatial Analyst might be what you are looking for. You can either use the purple polygon as is, or buffer it (ex. "purple polygon + 100m around it"), and then use it as the input to Extract by Mask. If you need your final raster cells to be a polygon you could polygonize the output of Extract by Mask.

Polygonizing the raster originally and then Unioning it with the purple polygon would also work (Union doesn't care if the polygons extend far beyond each other), you would just need to do something like Select by Location in order to grab only the the Union-output polygons that are overlapped by the purple polygon (and ignore the polygons in the middle of the ocean).

answered Aug 23, 2019 at 14:00
2
  • Extract by Mask was indeed the best solution. Commented Sep 25, 2019 at 20:17
  • @champezius please upvote and accept this post if you consider it an answer. Commented Oct 10, 2019 at 5:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.