Skip to main content
Solved

How do you extract a part of a line by start and stop measures?


I have a feature class of lines with measures and a unique id. I also have a list of line unique IDs and a start and stop measure for each.

Given these two inputs, I would like to extract a portion of each line using the start and stop measurements...How might I go about doing this?

Best answer by todd_davis

Hi,

Just to clarify, are you using measures or distance? If you are using measures, do the features have measures assigned. Your snipper would also need to be set to "Measures (Value)".

If you have multiple clipping measures per feature, you could feature merge them with a list, and then explode the list, to get the a feature for every input in your "list". Not sure if you have that, but just want to confirm.

Cheers,

Todd

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

3 replies

  • Author
  • April 7, 2016

I am using a snipper transformer with snipping mode "distance (value)", but encountering error

 

 

Snipper_Input: @Tcl2 -- failed to evaluate expression `Snipper_fixIndex ' -- wrong # args: should be "Snipper_fixIndex numIndex"

...And warnings of line length being too short...Since these are 3D paths, perhaps I should switch the Snipper to 3D measurement?


  • Author
  • April 7, 2016

Nope...Still same error. Switched mode to "measure relative to start" gets rid of the warnings of lines being too short though.

Checking further into the data it appears that some of my records have null/missing values...Problem solved..."Understand your inputs and filter for bad values."


todd_davis
Influencer
Forum|alt.badge.img+22
  • Influencer
  • Best Answer
  • April 7, 2016

Hi,

Just to clarify, are you using measures or distance? If you are using measures, do the features have measures assigned. Your snipper would also need to be set to "Measures (Value)".

If you have multiple clipping measures per feature, you could feature merge them with a list, and then explode the list, to get the a feature for every input in your "list". Not sure if you have that, but just want to confirm.

Cheers,

Todd


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