Skip to main content

I have a file of polygons and need to generate a list of which are adjacent to each other. I tried the spatialrelator tool and selected the 'touch' parameter but that didn't work for me. I then read a few posts on this forum and decided to buffer those polygons (only 10 ft) and then run the AreaOnAreaOverlayer to generate a list of overlapping polygons. I selected the Merge Attributes option and the UID column within the transformer so that the output included the UID of the main polygon and the UID of each polygon that is adjacent/overlaps that polygon.

 

The tool works with one exception: the formatting of the merged UID column. It keeps adding brackets { } in the column name. I can't find a way to remove those from the default name value within the transformer itself. I can change the column name in my output file to remove them, but then the transformer will not allow me to manually connect the transformer column to the new name column in my output file (which I've never had happen before).

 

If I run the tool with the brackets in the output file name, the transformer gives me an error because MapInfo (my writer) doesn't accept those symbols in the column name. I've tried shp and gbd formats as well and each one has the same issue with the column naming.

 

Does anyone know how to remove the brackets from the transformer column name? Or why I cannot manually connect the transformer column to the corrected output name I create? Attach are two images. One showing the error when I leave the brackets in and the second showing the exact same file except I've removed the brackets from the output name and you can see that it runs through without issue, but it won't connect to the new column name.

 

I figured out a work around. Instead of using SpatialRelator, I used NeighborFinder, set the number of neighbors higher than what is possible, and set the distance to 0. Then created a list and that list doesn't create names with brackets, so the ListExploder works perfectly now.


Reply