Skip to main content
Question

Merging atttributes

  • December 4, 2016
  • 4 replies
  • 31 views

gisgeek
Contributor
Forum|alt.badge.img+9

I have a lake dataset which I have aggregated and dissolved which has almost given me the right results. However as you will see from the results I have Lake Okataina and Lake Okataina/Te Moana i kataina a Te Rangitakaroro. Lake Okataina is larger than Lake Okataina/Te Moana ... however once I aggregated and dissolved I get Lake Okataina. How do I merge the LakeName so that I keep the whole name and not just Lake Okataina. I've tried tweaking a few of the dissolver parameters but this doesn't seem to have given me the result I want.

Cheers,

Sarah

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • December 5, 2016

Hi @gisgeek, if your requirement is to keep the longer name "Lake Okataina/Te Moana..." as "LakeName" value after aggregating or dissolving the two features (#392 and #393), try sorting the features by string length descending beforehand. You can use the StringLengthCalculator to get the lenght of a string (i.e. the number of characters).

If you don't want to change the original order of the lakes, get string length of each lake name as well, generate a list that stores input attributes when aggregating, sort the list by lake name length descending with the ListSorter, and then extract the first element of the list with the ListIndexer.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • December 5, 2016

Optionaly after aggregation (with the list option),sort the list on the lake name and use conditional values in the attribute manager for the specific case of lake Okataina to map the lake name attribute.

Hope this helps.


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • December 5, 2016

Maybe also set a list in the Dissolver, then use a ListConcatenator to concatenate all of those names together - if you want all of the names in a single attribute.


gisgeek
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • December 6, 2016

Thanks for your suggestions I found the Generate List in the Dissolver did the job,exposed the elements on my Lakes List and then used the conditional values to get a list of names that included the full names of the lakes.