Skip to main content
Question

Point Connector or something else?


franco69
Contributor
Forum|alt.badge.img+6

HI,

 

 

i have a lot of points in one feature class with an attribute for elevation

now i want to create lines between these points within a distance parameter (any possible line within this distance parameter)

and give the line two attributes....one for the elevation of point from

and one for the elevation of point to

 

which transformers i have to use and in which order?

 

Thx

 

Franco

 

 

P.S: A Happy New Year to all!!

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 8, 2014
Hi Franco,

 

 

I would use the NeighborFinder and the 2DPointAdder in the folowing context. Assume name of the attribute holding elevation is "_elevation".   1) Use a Counter to append sequential number attribute (e.g. "_index") to every point.   2) Use CoordinateExtractor to store coordinate values (e.g. "_x", "_y").   3) Send all points to CANDIDATE port of a NeighborFinder. Not use BASE port in this case. Maximum Dixtance: <distance parameter> Close Candidate List Name: _close   4) Use an AttributeRenamer to rename attributes which will conflict with "to" point after exploding (next step). Old Attribute  |  New Attribute _index  |  _from_index _elevation  |  _from_elevation   5) Use a ListExploder to explode "_close{}". Every point will have "_index", "_elevation", "_x", "_y" of "to" point.   6) Use a Tester to select only features which match with the condition of "from" index < "to" index ("1-2" line is same as "2-1" line; select "1-2" line here). _from_index < _index --> PASS   7) Use a 2DPoitAdder to transform the point to a line segment. X Value: _x Y Value: _y

 

 

Takashi

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • January 8, 2014
perfect!!!!

 

THX

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