Skip to main content
Question

Combining 2 datasets with points with linebuilder with a line for each point


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

I have two datasets with polygons that I would like to connect with the linebuilder in order to show the distances. One with adresses, the other with corresponding numbered objects.

 

For each object for each adress there should be a line (or a point when these are identical)

 

For this I would like to use a centerpointreplacer for both followed by a linebuilder (and lengthcalculator). However the linebuilder generates polygons when there are multiple objects with one adress that have the same xy as the adresses and one or more objects that have a different xy.

 

I tried using a sorter with both datasets (the adresses on adress, the objects on adress and number). The sorter for the objects has a group by on the adresses. However:

  • Grouping the objects in the linebuilder by adress I get polygons.
  • Grouping in the linebuilder by adress and number generates points only.

 

Any thoughts?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

Maybe you should try the NeighborFinder instead? It'll output attributes with the x and y coordinates on the base and candidate, allowing you to use 2 VertexCreators to generate the connecting lines.


ares
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • August 15, 2022

Thanks! I found another solution forcing unique objects by adding a counter (adding unique id's) followed by a featurejoiner (full) preserving geometry of the adresses and then combining the joined dataset and the object dataset (both now with counts) in the linebuilder grouped by these counts.


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