Skip to main content
Solved

How to write globalids from AGO without the curly braces?


masonb12
Contributor
Forum|alt.badge.img+12

Hi, I can read an arcgis online feature service using fme AGO reader. The globalids all have a curly brackets in the inspector. Is there a way to write the feature to a new table without the curly brackets. Curly brackets are messing things up when using globalids in url links. thanks

Best answer by hkingsbury

Before you write the data out, you can use a string replacer and regex to replace the curly braces with nothing.

 

Set the mode of the string replacer to  "Replace Regular Expression" and the "Text To Replace" as 

({|})

Leave the "Replacement Text" blank.

 

The above regex 'translates' to find "{" or "}"

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

4 replies

hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • Best Answer
  • December 12, 2023

Before you write the data out, you can use a string replacer and regex to replace the curly braces with nothing.

 

Set the mode of the string replacer to  "Replace Regular Expression" and the "Text To Replace" as 

({|})

Leave the "Replacement Text" blank.

 

The above regex 'translates' to find "{" or "}"


masonb12
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • December 12, 2023

Thanks! that works very well!


masonb12
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • December 12, 2023

Also, is it possible to also add .jpg to the end of each globalid

thanks


hkingsbury
Celebrity
Forum|alt.badge.img+55
  • Celebrity
  • December 12, 2023
masonb12 wrote:

Also, is it possible to also add .jpg to the end of each globalid

thanks

you can appended it on in an attribute creator

image


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