Solved

Merging attributes that overlap

  • 20 August 2019
  • 6 replies
  • 20 views

Badge +3

I am creating an index and have a couple of tiles that have multiple images associated with them. See below, I have two polygons that overlap, they have similar attributes, but I want them to merge so both are in the same field (Example 3). Is this possible?

1. First Polygon

S2_File_Nam123_456_2018.tif

2. Second Polygon

S2_File_Nam123_456_2017.tif

3. Desited outcome.

S2_File_Nam123_456_2018.tif, 123_456_2017.tif

 

 

Thanks

B

icon

Best answer by ebygomm 28 August 2019, 10:06

View original

6 replies

Userlevel 1
Badge +21

If you use a dissolver to merge the overlapping polygons and tick generate a list, using your filename attribute, you can then use a list concatenator to create your desired outcome

Badge +3

If you use a dissolver to merge the overlapping polygons and tick generate a list, using your filename attribute, you can then use a list concatenator to create your desired outcome

HI @egomm, thanks for the help. This worked part of the way. I've managed to get the list to create in a separate column as you suggested. But, it is bringing in every tiff file name that is within a contiguous bunch that have two values, rather than just the two tiles that directly overlap. Can I get it to isolate just the directly overlapping tiles? Thanks for the help.

B

Userlevel 1
Badge +21

HI @egomm, thanks for the help. This worked part of the way. I've managed to get the list to create in a separate column as you suggested. But, it is bringing in every tiff file name that is within a contiguous bunch that have two values, rather than just the two tiles that directly overlap. Can I get it to isolate just the directly overlapping tiles? Thanks for the help.

B

Are you able to share a screenshot of your data? There are number of spatial comparison transformers that will build a list that you can use. Without seeing the data it's hard to recommend what would be best.

It may be that you could just negative buffer your data and then dissolve so adjacent polygons are not dissolved but true overlaps are.

Badge +3

Are you able to share a screenshot of your data? There are number of spatial comparison transformers that will build a list that you can use. Without seeing the data it's hard to recommend what would be best.

It may be that you could just negative buffer your data and then dissolve so adjacent polygons are not dissolved but true overlaps are.

I've attached screenshots of the data in the folder.

The attribute table of the index I'm trying to make.

The grid index itself.

An example of the tiff tiles, there are 79 tiles in the screenshot below.

Thanks for the help.

B

Userlevel 1
Badge +21

If the grids are identical, you can use the matcher to build the list. Match on 2d geometry, and tick generate list, then concatenate the list on features that come out the SingleMatched port. Everything else will be output via the NotMatched port

Badge +3

If the grids are identical, you can use the matcher to build the list. Match on 2d geometry, and tick generate list, then concatenate the list on features that come out the SingleMatched port. Everything else will be output via the NotMatched port

Thanks this worked a treat. You are great.

Reply