Hello,
I have multiple segments line for which I would like to add a measure on the starting/ending of each segment. In other words, I would like to create a "fake" LRS where the measure will be computed from some attributes of the feature.
I thinking of using python with this logic
def addMeasure(feature
coord = feature.getAllCoordinates()
n=len(coord)
mfr=feature.getAttribute('MEASURE_TO')
mto=feature.getAttribute('MEASURE_FROM')
if mfr!=None and str(mfr)!='':
setMeasure(coord[0], mfr)
setMeasure(coord[n-1], mfr
feature.addCoordinates(coord)
where setMeasure should be a python version of the measureSetter Transformer.
How should I proceed?