Select to view content in your preferred language

Mask rasters with polygon?

8465
9
03-14-2016 05:03 PM
TomKearns
Frequent Contributor

Is this available in Pro yet?  I cannot figure out how to do it.  In Desktop it is available in the dataframe's properties under Data Frame, clip options, clip to shape.

The masking tool in pro is not applicable to the rasters (DRGs) I have under the shapefile (counties).

I am trying to make a map package for offline use in Collector but would like to break the state up due to size constraints.

Thanks

Tags (2)
0 Kudos
9 Replies
ChrisFilewich1
Emerging Contributor

I use the Extract by Mask tool to do the same in ArcGIS Pro.

0 Kudos
TomKearns
Frequent Contributor

Thanks for the response.

I have about 2000 rasters and need to hide some of them, as opposed to extracting pieces from one large raster.

The desktop tool would allow a polygon shape to act as a window to only see what was inside.  I am looking for this functionality in Pro.

ChrisFilewich1
Emerging Contributor

Ahh i see. Only other way I can think of would be to clip the map by extent (Map Properties>Extent>Custom Extent) but that's limited to a rectangular area. Probably not useful.

0 Kudos
YovavZohar1
Deactivated User

Hi Tom,

You can try the Clip Raster Function​ which is very useful and works with all license levels, regardless the extension. You can read here how to work with Raster Functions.

0 Kudos
TomKearns
Frequent Contributor

Please read my response above.  I have multiple rasters which need to be shown and multiple rasters which need to be hidden.  Unless the tool takes multiple input rasters (500+) it will not work for me.

0 Kudos
eclecticlearner
Occasional Contributor

I can't see where this functionality has been added in 2.0.0.  I have an update available but have not tried it yet.  I use this functionality a lot in my maps to hide aerial photography that overlaps my real estate boundaries of interest.  This among other ArcMap functions need to make their way in to pro.  I have been using pro for about 5 months now (almost exclusively) but I still have to revert ArcMap for some functions.

0 Kudos
Salit
by
Emerging Contributor

This might be late, but it can be done from Map Properties>Clip Layers>Clip to an outline.

Version: ArcGIS Pro 3.x

0 Kudos
GiaimeTocco
Occasional Contributor

When you try to apply it, Arcgis warns you that the process would be slow if the polygon has more than 20k vertices. I tried. It took FOREVER to end it. Totally unuseful. I also looked for the same function TomKearns used: probably it doesn't exist. Another brick added to the huge wall of the pointlessness of Arcgis Pro 3.3

0 Kudos
ChrisWesson
Esri Contributor

The method @Salit suggests is the equivalent to the desktop method mentioned.

But note masking is usually excluding an extent, whereas the above and original comment is actually clipping which includes only the extent.

If masking, then another approach would be to select all the raster layers you wish to mask from the contents pane (holding down CTRL to select individual layers, or SHIFT to select multiple layers at once), go to the "Raster Layer" tab in the ribbon at the top of the screen, look for the "Masking" dropdown in the Rendering section and check the box of the polygon layer you wish to use as the mask.

It won't be saving any masked copies, it simply applies the mask on-the-fly within the map.
Works for me with over 40,000 vertices in the masking polygon. You could use an inverse polygon to use this to effectively clip the area you want.

0 Kudos