Skip to main content
Solved

How to create Point geometry from measure value of a road?


oscard
Influencer
Forum|alt.badge.img+21

I have two datasets:

  • A calibrated road dataset. Every vertex of the line has the measure value (kilometer point).
  • A table with car accidents with a field that indicates the kilometer point where it happpened

I need to create Point geometries for the accident using both datasets. In other words, I need to create a point event layer.

As you can imagine, the accidents don't happen at an exact vertex of the road.

Can FME create that point event layer?

I've tried using the Snipper transformer, but I'm not getting the results I want.

Best answer by nielsgerrits

oscard wrote:

Yes, that is the one I'm trying to use. But I'm not sure how. The Mode "Measure (Value)" asks for a Starting Point and an Ending Point. I'm not sure what I need to set there. I only have the measure attribute from the point.

I do it like this. Not sure if this is the official way, but it works.

MeasureSnipper(2021)

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

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+52

I use the Snipper transformer to do this. You need to merge the calibrated set with the car accidents and feed that result into the Snipper.


oscard
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • January 17, 2024
nielsgerrits wrote:

I use the Snipper transformer to do this. You need to merge the calibrated set with the car accidents and feed that result into the Snipper.

Yes, that is the one I'm trying to use. But I'm not sure how. The Mode "Measure (Value)" asks for a Starting Point and an Ending Point. I'm not sure what I need to set there. I only have the measure attribute from the point.


nielsgerrits
VIP
Forum|alt.badge.img+52
  • VIP
  • Best Answer
  • January 17, 2024
oscard wrote:

Yes, that is the one I'm trying to use. But I'm not sure how. The Mode "Measure (Value)" asks for a Starting Point and an Ending Point. I'm not sure what I need to set there. I only have the measure attribute from the point.

I do it like this. Not sure if this is the official way, but it works.

MeasureSnipper(2021)


oscard
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • January 17, 2024
oscard wrote:

Yes, that is the one I'm trying to use. But I'm not sure how. The Mode "Measure (Value)" asks for a Starting Point and an Ending Point. I'm not sure what I need to set there. I only have the measure attribute from the point.

Thanks. I had an epiphany and figured it out a moment ago.

 

The fact that Snipper is asking me for two attributes (Starting and Ending) was confusing me greatly. I am used to the ESRI Tools, where just one attribute is needed (the measure itself).

 

In the Snipper I just had to use the attribute with the measure in both of them to generate a Point.

It was rather logical, actually. I guess I am a bit thick today.

 

Thanks for the help!


nielsgerrits
VIP
Forum|alt.badge.img+52
oscard wrote:

Yes, that is the one I'm trying to use. But I'm not sure how. The Mode "Measure (Value)" asks for a Starting Point and an Ending Point. I'm not sure what I need to set there. I only have the measure attribute from the point.

Cheers :). Took me some help to understand measures myself, nothing wrong with asking.


Reply


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