Skip to main content
Question

Converting points to existing polygons based on attribute value retaining all unique items

  • February 17, 2021
  • 3 replies
  • 86 views

ares
Contributor
Forum|alt.badge.img+2
  • Contributor

I would like to transfer a layer with a number of adress points to the building polygons in which they are located. For each point I would like the corresponding polygon of the building.

 

With PointOnAreaOverlayer I got the attribute data of the polygons, but how to replace the point geometry with the existing polygons of the buildings retaining all the items (no aggregation)?

 

3 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • February 17, 2021

If you extract the polygon geometry into an attribute with the GeometryExtractor after the point on overlayer you can use this attribute to replace the point with a GeometryReplacer


Forum|alt.badge.img+2
  • February 18, 2021

@ares​ The Area output port has the areas. If there are multiple points per polygon, then you can use the Attribute Accumulation list parameter to create a list of the points that related to the area and then ListExploder to split those into separate features.


ares
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • February 22, 2021

Thanks all. Eventually I found the answer in using FeatureMerger by adding the areas as supplier to the points with feature merge type Geometry. This also replaces the original point geometry.


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