Skip to main content
Solved

NeighborFinder: Try to get elevation but get this error: IFMELine was given an index beyond its current range

  • January 5, 2018
  • 8 replies
  • 72 views

lau
Forum|alt.badge.img+3

Hello,

I am trying to get the elevation using a NeighborFinder. I get this error:

IFMELine was given an index beyond its current range (see workspace in attached)

And I get 'nan' for the elevation. Any idea why?

Best answer by markatsafe

@lau This does seem to be a defect in the NeighborFinder. When the point (Base) is past the end point of the line (candidate) then you'll see this error. We'll get this fixed.

 

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.

8 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • January 5, 2018

You do not have any z value on neither the line or the point.

(no z value does not mean that the elevation is zero, it means there is no such value)

You could add elevation at the creator(s) or use a 3d forcer to add a z value.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • January 5, 2018

btw nan = not a number


takashi
Celebrity
  • 7843 replies
  • January 7, 2018

I think the error has been caused by a defect of the NeighborFinder. Hope someone from Safe to clarify this.


lau
Forum|alt.badge.img+3
  • Author
  • 65 replies
  • January 8, 2018

You do not have any z value on neither the line or the point.

(no z value does not mean that the elevation is zero, it means there is no such value)

You could add elevation at the creator(s) or use a 3d forcer to add a z value.

Oups I have just seen that one of my creator creates a "line" with 0,0 ; 0,0 coordinates. This results from an old test. But the following VertexCreators create indeed a line with z values

 

 


lau
Forum|alt.badge.img+3
  • Author
  • 65 replies
  • January 8, 2018

I found a workaround but indeed, it seems there is a bug with the "Take z From Candidate" functionality of the NeighborFinder.

I use a densifier to densify the vertex of the candidates. Then I used a chopper (1 vertex) to get points. I recorded the z in an attribute and use merge attribute in the NeighborFinder. Not efficient but effective :)


Forum|alt.badge.img+2
  • 1891 replies
  • Best Answer
  • January 10, 2018
@lau This does seem to be a defect in the NeighborFinder. When the point (Base) is past the end point of the line (candidate) then you'll see this error. We'll get this fixed.

 


lau
Forum|alt.badge.img+3
  • Author
  • 65 replies
  • January 11, 2018
@lau This does seem to be a defect in the NeighborFinder. When the point (Base) is past the end point of the line (candidate) then you'll see this error. We'll get this fixed.

 

Indeed. Thank you for the follow up!

 

 


lars_de_vries
Forum|alt.badge.img+10
  • 388 replies
  • October 12, 2018
@lau This does seem to be a defect in the NeighborFinder. When the point (Base) is past the end point of the line (candidate) then you'll see this error. We'll get this fixed.

 

This issue also counts for Measures. By the way the error is still present in build 18528