Skip to main content
Solved

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


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.

 

View original
Did this help you find an answer to your question?

8 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 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
  • January 5, 2018

btw nan = not a number


takashi
Influencer
  • 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
  • January 8, 2018
gio wrote:

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
  • 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
  • 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
  • January 11, 2018
markatsafe wrote:
@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
markatsafe wrote:
@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

 

 


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