Skip to main content
Solved

Dissolve and keep max attribut value


pabloolivaresm
Supporter
Forum|alt.badge.img+6

Hi all

 

I have buildings polygones with height attribut. when the height was calculated some of buildings were cutted in two. So now, I would like to dissolve those buildings and keep the max height of both. I can dissolve easily because they share an identificator, but I dont know how to keep the maximal height of both.

 

Thanks you all

Best answer by redgeographics

The Dissolver has the option to generate a list, do that, then use a ListSorter to sort that list on the height and then you can access that list value in an AttributeManager (or use a ListIndexer). Don't forget to remove the list afterwards with an AttributeRemover.

View original
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

redgeographics
VIP
Forum|alt.badge.img+63

The Dissolver has the option to generate a list, do that, then use a ListSorter to sort that list on the height and then you can access that list value in an AttributeManager (or use a ListIndexer). Don't forget to remove the list afterwards with an AttributeRemover.


pabloolivaresm
Supporter
Forum|alt.badge.img+6

The Dissolver has the option to generate a list, do that, then use a ListSorter to sort that list on the height and then you can access that list value in an AttributeManager (or use a ListIndexer). Don't forget to remove the list afterwards with an AttributeRemover.

@Hans van der Maarel​  Thanks for your answer! I realized that a few polygones were cutted in 6, 5, 4 or 3, I didn't realized before, sorry but there is about 50.000 polygones. For those where there is just two attributs height_0 et height 1, I can easily choose the second one, but for the others i can't. I will look in the forum. issue


redgeographics
VIP
Forum|alt.badge.img+63

@Hans van der Maarel​  Thanks for your answer! I realized that a few polygones were cutted in 6, 5, 4 or 3, I didn't realized before, sorry but there is about 50.000 polygones. For those where there is just two attributs height_0 et height 1, I can easily choose the second one, but for the others i can't. I will look in the forum. issue

If you reverse the sort order in the ListSorter, height{0}._max should always be the highest value.


pabloolivaresm
Supporter
Forum|alt.badge.img+6

@Hans van der Maarel​  Thanks for your answer! I realized that a few polygones were cutted in 6, 5, 4 or 3, I didn't realized before, sorry but there is about 50.000 polygones. For those where there is just two attributs height_0 et height 1, I can easily choose the second one, but for the others i can't. I will look in the forum. issue

thanks again, work well