Skip to main content
Question

How to gain Z value from text entity to line feature


lazarlubomir
Contributor
Forum|alt.badge.img+7

Hello everybody!

I just wanna solve problem with Z values (as stand alone entity), which I want to merge with attributes of line feature. My problem is following (please check the picture below):

As You can see, there is text point with Z value, but their def point is totally out of vertex of line feature. What I need is to get line feature with 2 attributes - Z value of start vertex and Z value of end vertex. Is anybody here, who has solution of this situation please?

Thank You so much!

Lubo

9 replies

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • August 28, 2016

Not precisely sure what you need to do, but you can retrieve the start (or end) coordinate via the CoordinateExtractor. An index of 0 gets you the first coordinate, and -1 will get you the second one. So putting down 2 of these transformers and choosing appropriate names and indexes and running through them in series (one after the other) will result in you having your start and end Z values as attributes on your line features.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • August 28, 2016

the next step can be using the xy coordinates of the start and end to create point features and feeding them to the neighborfinder along with the text nodes.

When set correctly the neighbourfinder will result in a list of all the features within the specified distance tolerance.

So analyzing the list elements and for example retrieving the nearest text node might be what you are searching for.

Good luck !


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 28, 2016
fmelizard wrote:

Not precisely sure what you need to do, but you can retrieve the start (or end) coordinate via the CoordinateExtractor. An index of 0 gets you the first coordinate, and -1 will get you the second one. So putting down 2 of these transformers and choosing appropriate names and indexes and running through them in series (one after the other) will result in you having your start and end Z values as attributes on your line features.

Yes, its great tip! But I have problem with Z values, which are not related to line feature. Line features in my case are 2D and Z values are saved in another feature class. So I need to merge line feature class with text feature class (with Z values), unfortunately there are not any common ID, so maybe I should connect them via some spatial analysis - but how and which analysis I should use please?

 

 


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 28, 2016
itay wrote:

the next step can be using the xy coordinates of the start and end to create point features and feeding them to the neighborfinder along with the text nodes.

When set correctly the neighbourfinder will result in a list of all the features within the specified distance tolerance.

So analyzing the list elements and for example retrieving the nearest text node might be what you are searching for.

Good luck !

Nice tip! Anyway, how could I retrieve back line features? Because result of the analysis will be point feature class, not lines... And ideally if lines will be in same shape as before analysis...

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • August 28, 2016

then just use the lines and not start and end points in the analysis


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • August 29, 2016

Maybe supply us a small sample and we can give a careful look. I suspect it may take clever use of neighbourfinder (maybe 2 of them) so you can get the z values from the text nodes onto the end points of the line.


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • August 29, 2016

Hi,

I have assembled the suggestions and screenshot provided and prepared a workbench. Workbench is attached for reference. Hope this will help you for better understanding.z2line.fmw


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • August 29, 2016

Hi @pratap

Have a look at my take of the issue.

Hope this helps.4444-z2line-itay.fmw


lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 30, 2016
pratap wrote:

Hi,

I have assembled the suggestions and screenshot provided and prepared a workbench. Workbench is attached for reference. Hope this will help you for better understanding.z2line.fmw

Thank You so much, both of You! Now I understand it clearly!

 

 


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