Attribute Rules RULE
Megan Engel, GISP
GIS Manager @ AgriCapture | Certified GIS Professional (GISP) | 14 Years in GIS & Environmental Science | Passionate & Committed to Geospatial Tech & Environmental Resilience
So, recently I’ve been digging deep into Esri's attribution documentation for ArcGIS Pro and stumbled upon something I wish I had known about years ago—cue Attribute Rules! I haven't implemented these yet in practice, but honestly, they would have been a lifesaver back when I was working on dozens of iterations (per project) of stream/wetland mitigation concept maps. Having certain fields auto-calculate could have saved me so much time and hassle, and just plain wrong math. Now that I know about them, I’m excited to see how they can streamline workflows and handle repetitive tasks.
The example below is a specific use case for calculating stream credits based on mitigation type; it’ll give you a peek at what you can do with Attribute Rules.
Before we dive in, here’s what you’ll need:
Let’s Get Started
Arcade expression from this example:
var mit_type = $feature.mit_type;
if (mit_type == "Restoration") {
return 1;
} else if (mit_type == "Enhancement I") {
return 1.5;
} else if (mit_type == "Enhancement II") {
return 3;
} else if (mit_type == "Preservation") {
return 10;
} else {
return null;
}
领英推荐
Diving a bit deeper
Now that our ratio field is automatically updated by the Attribute Rule we just created, let’s explore other possibilities. We could set up rules to auto-calculate areas, or use the ratio to calculate credits. Below, you’ll see a gif of three rules working together. These rules include:
Considerations
With a bit of planning and some creative thinking, Attribute Rules may prove to be a game-changer for your projects.
Next week, we'll dive into thinking about your geoprocessing strategy.
GIS you later!
Pro Tip: Never stop exploring—even if the documentation doesn’t seem immediately relevant. You never know what you’ll discover! There are countless methods and tools out there that could make your GIS workflows easier and more efficient; and who doesn’t want that?
Regulatory Manager, TN & GA at RES
6 个月Wow! Definitely going to try this out.
Stream Restoration Designer/CAD Specialist
6 个月I cannot wait to test this! I swear just yesterday I was complaining that there wasn't an easy way to recalculate the geometry in an attribute table. Thanks Megan, you're the best!
GIS Analyst | Surveying Engineer | Freelancer | ????
6 个月Interesting