Skip to main content
Question

line between points that have same attributes

  • September 25, 2014
  • 2 replies
  • 97 views

Forum|alt.badge.img
Hello,

 

 

I have two sets of points. I'd like to draw lines between all the points that share the same value of a defined attribute (from one set of point to the second). Is there a way of doing that ?

 

 

thank you in advance for your help 

 

 

 
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img
1 - Use a sorter (sort by the "connecting" attribute)

 

2 - Add a "PointConnector (http://docs.safe.com/fme/html/FME_Transformers/Default.htm#Transformers/pointconnector.htm%3FTocPath%3DFME%20Transformers%7CAll%20Workbench%20Transformers%7C_____300)" and set the Connection Break Attribute

 

 

Your points with the same attribute will now have a line feature between them.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • September 26, 2014
Then u will end up with as many lines as there are different connecting attributes. Also they will connect all over the place.

 

 

I suggest following routine:

 

U must relalet/link the two datasets grouped by the connectionattribute.

 

First extract coordinates. (name them differently)

 

Create a common link-attribute (i use Linkall=1) on both sets and use featuremerger grouped by connectionattribute. Use list for udplicates and explode after merge.

 

Now u got coordinates to link.

 

Use vertexcreators, 1 to replace and on to add.

 

 

 

Now all objects from one set are connected to other set by connection attribute.

 

 

If u have some rule to pair them u could do that too of course.

 

 

 

 

 

 

Here adresses from 2 neighboorhoods are linked based on their use.

 

 

(i used a sample set, else it will be too large for pic)