Skip to main content
Question

snipper

  • August 2, 2018
  • 3 replies
  • 57 views

Forum|alt.badge.img

If the measure value provided beyond the min and max, it would snip to a point as indicated in the log file: WARN |@Snip (or FMELine::snip) was given Measures of 123625.0508 and 123625.0508, which are out of range for a line with min/max measures of 2.1792075131088495e-6 and 79907.89199766226. Snapping params to closest valid value.

Can Snipper be set to reject the input?

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.

3 replies

takashi
Celebrity
  • 7843 replies
  • August 2, 2018

Hi @george, I don't think there is a way to make the Snipper to reject features out of range. A workaround is to extract measure values from the feature and filter out it before entering to the Snipper if it was out of range. You can use the MeasureExtractor to extract measure values from the feature.


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • August 2, 2018

Hi @george You could also use the MeasureExtractor after the Snipper - extract the last measure with an Index of -1 and then use a Tester to see if this is the same as the Ending Location from the Snipper. Please post this idea about filtering these out-of-range features at https://knowledge.safe.com/content/idea/list.html


runneals
Supporter
Forum|alt.badge.img+27
  • Supporter
  • 321 replies
  • January 28, 2022

Running into this and the way that Takashi mentioned isn't very elegant. I created the idea: https://community.safe.com/s/idea/0874Q000000cU2wQAE/detail