Skip to main content

Hi.
I’m using the snipper transformer to extract portions of a line at specific values from the attribute table.

I set these parameters for the transformer.

 

I set these parameters for the transformer.

The problem that I noticed is that the program considers the first vertex of the line as 0 and the last one as the maximum, and the snipper will split between these two values.

Is there a method to define the start value using another value, not 0? I would like to start from 4.21 km.

Thanks.

I think you did not set the measures the way you need them. You need a list with KM values for each vertex of the line and use that as input for the MeasureSetter.

Building this list can be a bit tricky. If the administrative distance between the startpoint and the endpoint is 1000 meters, but the real length of the line is 900 meters, what are the values of the measures of the segments? One way to solve this is to stretch the 1000 meters over 900 meters.

Looks like the MeasureCalibrator from the hub does solve this:

This transformer transfers the measures from nearby points to the nearest line location, then fills in the rest of the line measures based on those point measures.

Measures between two points are interpolated. Measures between the points and the line endpoints are extrapolated from the nearest interpolated segment. Interpolation / extrapolation can be done in 2D (XY Plane) or 3D.


Reply