Skip to main content
Question

Hello im using fme json fragmenter to get the coordinate X and Y from the attribute response body, im getting the coordinate in the field _result but in to line with the json index 0 and 1, do you know how i can get the coordinate for each feature?

  • August 15, 2023
  • 4 replies
  • 54 views

4 replies

geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • August 16, 2023

The best way may be to change the way to read the json file.

If you want to process these results, you can use an AttributeManager with option 'Enable Adjacent Feature Attributes' enabled, looking at 1 subsequent feature. Next, use some conditional values. When json_index = 0, _results from this feature contains longitude, and _results from the next feature contains latitude.

LonLat_Subsequent


hola1115
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 16, 2023

The best way may be to change the way to read the json file.

If you want to process these results, you can use an AttributeManager with option 'Enable Adjacent Feature Attributes' enabled, looking at 1 subsequent feature. Next, use some conditional values. When json_index = 0, _results from this feature contains longitude, and _results from the next feature contains latitude.

LonLat_Subsequent

thank you it working with the attribute manager i didnt know this option


geomancer
Evangelist
Forum|alt.badge.img+60
  • Evangelist
  • August 16, 2023

The best way may be to change the way to read the json file.

If you want to process these results, you can use an AttributeManager with option 'Enable Adjacent Feature Attributes' enabled, looking at 1 subsequent feature. Next, use some conditional values. When json_index = 0, _results from this feature contains longitude, and _results from the next feature contains latitude.

LonLat_Subsequent

Hi, good to hear it works. There is always more to learn about FME 😃


hola1115
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 16, 2023

Hi, good to hear it works. There is always more to learn about FME 😃

😀