I had a similar project where I needed to manipulate certain portions of a polygon boundary based on the source layers. The solution I found worked best in that case was to use TopologyBuilder.
TopologyBuilder outputs the segments of common Polygon Boundaries onto the Edges Port, an "Edge" being the linear segment common to two adjoining polygons, but it will be split at the points where it stops being the common edge between those Polygons, allowing those Edges to be individually manipulated.
If the parameter, "Propagate All Attributes From Input" is set to Yes, then the resulting Edges will have the Attributes of the Polygons, including such things as the Feature Type. Using something like ListSearcher on the Edges port of TopologyBuilder will allow you to filter out the Edges that belong to Eg. the Field Feature Type.
I had a similar project where I needed to manipulate certain portions of a polygon boundary based on the source layers. The solution I found worked best in that case was to use TopologyBuilder.
TopologyBuilder outputs the segments of common Polygon Boundaries onto the Edges Port, an "Edge" being the linear segment common to two adjoining polygons, but it will be split at the points where it stops being the common edge between those Polygons, allowing those Edges to be individually manipulated.
If the parameter, "Propagate All Attributes From Input" is set to Yes, then the resulting Edges will have the Attributes of the Polygons, including such things as the Feature Type. Using something like ListSearcher on the Edges port of TopologyBuilder will allow you to filter out the Edges that belong to Eg. the Field Feature Type.
Hi @bwn, thanks so much for this help. I really appreciate it. I might be missing something but that "Propagate All Attributes From Input" doesn't appear to be available any longer? I'm running 2019.1.
*edit. I copied another TopologyBuilder from another instance of FME which has the "Propagate All Attributes From Input" option. Strange.
Thanks
B
Hi @bwn, thanks so much for this help. I really appreciate it. I might be missing something but that "Propagate All Attributes From Input" doesn't appear to be available any longer? I'm running 2019.1.
*edit. I copied another TopologyBuilder from another instance of FME which has the "Propagate All Attributes From Input" option. Strange.
Thanks
B
Yes, you're right, looking over the documentation for FME2019+, it appears instead this Parameter has been replaced with "Generate List From ... ". It looks like this is to allow the user finer control over which Port(s) the Source Attributes will appear (in a List) as in earlier versions the Attributes appeared on all Ports, regardless whether you wanted say, only for them to be on the Edges.