Skip to main content

This one is possibly either already done somewhere or a bit difficult, or I'm just missing something.

I have road lines that are not linearly referenced with measurements, and a separate feature class of reference points containing measurements. The reference points (RPs) lie generally within a few cm of the line and at regular distances along it, so they can be quite reliably related spatially. I want to use the RPs to assign measures to those known locations along the line, then interpolate other measures on the line between and also before/after the RPs (potentially down to each metre) to create what is effectively a measured route along the whole road line. The measure or z value interpolator looks a good option once I have some measures on the line and have then created additional vertices using the IterativeSnipper/LineCombiner (thanks Takashi from another thread).

The aim overall is to then cut this line between specified measures to indicate planned maintenance. Note I do not reliably know the direction the lines were originally digitised in, so I cannot make assumptions on direction, hence trying what I am now. The RPs are the only thing I have to reliably indicate distance and direction on the road.

 

I can cut the line using the PointOnLineOverlayer, what I then want to do is using the measurement from the RP that is cutting the line to create a vertex on the line and assign the measure to that line.

 

 

It's an interesting challenge, I would try this. Can you share a sample dataset including a road line and reference points associating to the line?

 

 


We are converting files from KML/KMZ format to MapInfo in a batch operation. We have our C# program calling the FME as a console application with parameters, for every file. Everything works fine except sometimes the the KML input file has errors in it and the FME convertor exists with an error I can see in the console screen.

Is any way I can programmatically detect when the convertor has problems and skip the file from my side of the code? Is any message send back to the console in case of success or fail? 

It should be a correct way to get the result since I can see it in the console, i am just looking for the supported way.

Below is an example how we call the FME workflow:

string inputPath2 = "C:\\Users\\Breazuo\\Documents\\FME\\Workspaces\\ogckml2mapinfo.fmw" +
                    " --SourceDataset_OGCKML " + "\"" + path + "\"" +
                    " --DestDataset_MAPINFO " + "\"" + FMEOutputDirectory + "\"";
 System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
 pProcess.StartInfo.FileName = FMEPath;
 pProcess.StartInfo.Arguments = inputPath2;
  pProcess.Start();
   pProcess.WaitForExit();
   pProcess.Close();

 


Sounds like you may want to consider voting for this idea:

https://knowledge.safe.com/content/idea/19598/transformer-calibrateroutes-for-linear-referencing.html

If someone ends up implementing this, it would be a killer addition to the FME Hub, btw :-)

This could be a prototype of the killer ;-)

 

interpolate-extrapolate-measures-prototype.fmwt (FME 2018.1.0.3)

 


It's an interesting challenge, I would try this. Can you share a sample dataset including a road line and reference points associating to the line?

 

 

I'll get back to you if I can do that, thanks for offering in the meantime.

 

 


This could be a prototype of the killer ;-)

 

interpolate-extrapolate-measures-prototype.fmwt (FME 2018.1.0.3)

 

I will take a good look at that, cheers Takashi!

 

 


Sounds like you may want to consider voting for this idea:

https://knowledge.safe.com/content/idea/19598/transformer-calibrateroutes-for-linear-referencing.html

If someone ends up implementing this, it would be a killer addition to the FME Hub, btw :-)

Thanks David - that idea looks good and to be honest I haven't linearly referenced before in Arc or FME so this is very educational. I'll let you know how I go with Takashi's suggestion.