Select to view content in your preferred language

Clip Heat Map to Country Borders

1150
6
10-23-2023 11:12 AM
Labels (1)
tayloropossum
New Contributor

Hello,

I am a GIS student who is still fairly new to ArcGIS Pro. I'm making a map of bird distribution and utilizing the heat map feature. I have added a layer of crowdsourced reports of a species of bird that's using x,y data; I assume this is a point layer.

My problem is that I want the extraneous parts of the heat map that is outside the border of a state/country border to be clipped or hidden. The blue portions of my heat map in the attached image 1 are what trying to remove or mask/clip. I've tried a number of solutions but none seem to give me my desired result. The masking button under Feature Layer tab gets close to what I want, but it is inverted (See image 2). Essentially, I want the heat map to be limited to land, as the heat map "bleeds" outside the country boundary. 

I appreciate any advice or help, I am trying to learn!Image 1.pngimage2.png

0 Kudos
6 Replies
Robert_LeClair
Esri Notable Contributor

One option to consider is to go to your Map Properties-Clip Layers and choose Clip to an Outline.  From there, choose the polygon layer that will be used as the outline.  You can optionally exclude layers from clipping in this User Interface as well.

ARyanWADNR
Occasional Contributor

This isn't the most beautiful answer, but I just use a marine waters data layer as a masking extent. Something like this:

ARyanWADNR_0-1698091613126.png

And mask using the Marine Waters of Washington State:

ARyanWADNR_1-1698091635777.png

 

0 Kudos
Robert_LeClair
Esri Notable Contributor

That works as well - I'll keep on looking a better solution.

0 Kudos
Robert_LeClair
Esri Notable Contributor

Related question - I'm presuming you're using the Heat Map symbology option for a points layer in your Map View, correct?  If you have the Spatial Analyst extension, you can run the Point Density or Kernel Density GP tools to create an output raster dataset.  In the GP tools Environment Settings, you can set the Mask to a polygon layer in your Map View.  For the output, you can choose a Heatmap #XX color scheme.

KernelDensity.JPG

0 Kudos
tayloropossum
New Contributor

Thank you for your reply! As I said I am still new to ArcGIS as such I'm not familiar with this data layer. Is this something I'd have to download from ArcGIS online or another site? Or is it something I can find within the program?

0 Kudos
Robert_LeClair
Esri Notable Contributor

You're welcome!  So the data layer you're working with inside ArcGIS Pro can be local (i.e. shapefiles, geodatabase feature class) and may be of a points geometry type.  If so, then one can create an on the fly heat map using the Heat Map Symbology in the Map View.  You can read more about it here.  There are other Geoprocessing tools where you can create a raster from a points feature class and then run the density tools to create a surface like I attached in my earlier post.

0 Kudos