Skip to main content
Solved

Dissolve and keep max attribut value


pabloolivaresm
Supporter
Forum|alt.badge.img+4

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
Did this help you find an answer to your question?

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+48
  • Celebrity
  • Best Answer
  • July 17, 2023

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+4
redgeographics wrote:

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
Celebrity
Forum|alt.badge.img+48
pabloolivaresm wrote:

@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+4
pabloolivaresm wrote:

@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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings