I'm currently working on a project involving rivers, generated using Derive Stream As Line ().The output has each segment of each river separated at each intersection. I'm now doing the work of assigning them attributes, namely their names.
Note: What I'm looking for here would also be great for like, roads, or even polygons.
What I'd like at the end of this is to be able to treat the entire river (all 100+ segments) as one feature for things like labelling. You can do it already with symbology if you just symbolize by attribute (or expression), but for labelling, it doesn't work.
Now, of course I could always merge or dissolve the features manually, but then I have an extra file that only exists for the purpose of labelling, and would have to be updated if something in the original file changed. This is not really ideal.
And this is not just for labelling-- It'd be cool if you could treat each one of the aggregated features as its own thing for like, getting the measurements and something. Sure, you can always do summary statistics or the data engineering pane, but wouldn't it be cool if you could turn on the aggregation, then when you Identified it or measured it, it gave you information about all of them together?
I looked into doing something similar for trails back at an old job. We needed the individual segments for reporting purposes, but we needed to also be able to just put the entire thing on a map for general use. If we'd had this functionality, it would have been a lot more easy.
From pure labelling point of view, these options are what I often use so I don't have to wrangle data I want to keep fit for another purpose.
If you want to merge/sum the lengths per name in the label, for example, let me know when you've found an easy option 🙂
Yeah, I use those settings frequently, especially the "minimum feature size" setting. However, when my linear feature that is 100 miles is actually 160 individual features of .6 miles...
I could accomplish this with a Query Layer, but 1) those only work for enterprise GDBs and 2) they are slowww, particularly if you're doing geometry operations.
If the individual segments have the same name attribute and that name attribute is used for your label expression, turn on Line connection in the Maplex label settings (Position tab > Conflict resolution tab > Line connection). This will treat connecting lines with the same name as one single feature for labeling purposes.
Oh, that's pretty sweet, and along the lines of what I was thinking.
It doesn't appear that there's a similar option for contiguous Polygons?
No, there's not a similar connection feature for polygons, but you can use the Remove duplicates functionality with polygons to limit how frequently the polygons get labeled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.