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?


hola1115
Contributor
Forum|alt.badge.img+2

image 

 

image

4 replies

geomancer
Evangelist
Forum|alt.badge.img+48
  • 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+2
  • Author
  • Contributor
  • August 16, 2023
geomancer wrote:

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+48
  • Evangelist
  • August 16, 2023
geomancer wrote:

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+2
  • Author
  • Contributor
  • August 16, 2023
geomancer wrote:

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

😀


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