Enable use of selection on a mask layer for an environment setting

2721
11
11-18-2021 05:16 AM
Status: Implemented
Labels (1)
DuncanHornby
MVP Notable Contributor

Many spatial analyst tools use the environment setting Mask which is a powerful way to limit a tools processing  to a specific area. A mask can be a raster but it can also be features (vector data). I often use vector data as a mask, e.g. island polygons to say mask a raster landcover dataset I wish to process.

Just about every tool that takes a vector dataset as input will honour selections. But the Mask environment setting ignores selections, it always uses the whole dataset.

My idea is to enable the mask environment setting to honour selections on a vector layer if it is used as a mask for a raster processing tool (e.g. the CON() tool). If the datasource of a layer is used instead, then I expect all features to participate in the masking.

So in my use case scenario I have a global vector dataset of islands, I've selected a subset and I want only those to be considered as a mask, currently the selection is ignored and all polygons are considered a mask.

11 Comments
DuncanHornby

@KoryKramer that's great news, I have upgraded a couple of machines to 3.0 so will give it a go and try to break it.. 😉 If you don't hear from me then it passed my testing!

I have to admit the first thing I did with 3.0 was turn off that awful behaviour that was introduced into model builder 2.8 where it groups output into a group layer, that broke downstream connection logic.