Skip to main content

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!!
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
perfect!!!!

 

THX

Reply