Skip to main content
Question

Replace one point with the next in attribute table


Forum|alt.badge.img
Hello everyone!

 

I am very new to the world of FME (and already very intrigued) and I am working on a use case that I can not quite figure out yet.

So I have points going into a certain line. I want to then export the points to AGOL, but not all at once. I want to make it look like one point is moving across the screen in a certain line. So basicly I need to know if there is a way to replace the point on the screen with the point that is next in the attribute table. For now I want to just try this out by running the FME Workspace over and over to see if the point moves the way I want it to, but when I finally have it figured out I want to add it to an FME Server to make it look like a live data stream.

I am sorry if this is a dumb question but I have been trying to figure it out for the past 3 days.

I already tried the StringReplacer but maybe I am doing it wrong.

I also have a counter in place

What to do?

 

Thank you so much in advance!

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

To be honest... I'm not sure FME is the right tool for the job.

If you do want to do it in FME, I would try using a FeatureWriter inside a custom transformer loop, making sure it writes each point separately. Add a Decelerator to the loop to slow things down and then there should be a way in AGOL to refresh the screen each time a feature is written (but I have zero experience with AGOL)


Forum|alt.badge.img
  • Author
  • May 23, 2019
redgeographics wrote:

To be honest... I'm not sure FME is the right tool for the job.

If you do want to do it in FME, I would try using a FeatureWriter inside a custom transformer loop, making sure it writes each point separately. Add a Decelerator to the loop to slow things down and then there should be a way in AGOL to refresh the screen each time a feature is written (but I have zero experience with AGOL)

@redgeographics

Thank you for the reaction! I will certainly try this out.

This is just for a demo of a tool I am working on. In the final version it is supposed to be working with live location data, so maybe I am now just putting more work on myself than is needed, haha! Anyway, thank you again :)


Forum|alt.badge.img

Hi

I have created a live map into AGOL using python, and I would do the same here.

I am guessing that you will have only one point moving, then using a Python caller to loop through the points and using the update rest point for AGOL you can update the AGOL point layer with the new location by creating a JSON which you will need the FID of the point you are updating. you will need to add a sleep between each loop so can see it change in AGOL

 

https://developers.arcgis.com/rest/services-reference/update-features.htm


Forum|alt.badge.img
  • Author
  • May 23, 2019
davidrich wrote:

Hi

I have created a live map into AGOL using python, and I would do the same here.

I am guessing that you will have only one point moving, then using a Python caller to loop through the points and using the update rest point for AGOL you can update the AGOL point layer with the new location by creating a JSON which you will need the FID of the point you are updating. you will need to add a sleep between each loop so can see it change in AGOL

 

https://developers.arcgis.com/rest/services-reference/update-features.htm

Hello!

Thank you for answering as well! I am definitely going to try this option and see what happens!

 


virtualcitymatt
Celebrity
Forum|alt.badge.img+34
redgeographics wrote:

To be honest... I'm not sure FME is the right tool for the job.

If you do want to do it in FME, I would try using a FeatureWriter inside a custom transformer loop, making sure it writes each point separately. Add a Decelerator to the loop to slow things down and then there should be a way in AGOL to refresh the screen each time a feature is written (but I have zero experience with AGOL)

Yeah this would be the go I think as well. The challenge is indeed making sure that each point is written when it gets to the writer and I think using this method is a a nice idea.


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