Skip to main content
Solved

Is there a transformer/function in FME that allows me to read attachments from an ARCGIS Online feature layer and append them to another ARCGIS Online feature layer?


Forum|alt.badge.img

Surveyors are collecting data on-site and taking photos as attachments unto an ARCGIS Feature Layer. Depending on the infrastructure category, I need to display these survey results across multiple ARCGIS Feature Layers. Is this possible without saving the attachments locally first?

Best answer by danminneyatsaf

Hi @manca_ent​ when reading attachments with the ArcGIS Online Feature Service Reader with Include Attachments enabled, the attachments are read as their data type. You will then need to use an ImageRasterizer to convert these to a raster image, and then save these locally. If you want to add attachments to another ArcGIS Online Feature Service, you can use the AGOLAttachmentAdder.

 

Unfortunately, the AGOLAttachmentAdder only accepts jpeg/png files, so you will have to save these attachments locally first before they can be available to the AGOLAttachmentAdder.

If you're looking to perform some cleanup on the local files, you could look into using the FileDeleter after you've added the attachments.

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

2 replies

danminneyatsaf
Safer
Forum|alt.badge.img+12

Hi @manca_ent​ when reading attachments with the ArcGIS Online Feature Service Reader with Include Attachments enabled, the attachments are read as their data type. You will then need to use an ImageRasterizer to convert these to a raster image, and then save these locally. If you want to add attachments to another ArcGIS Online Feature Service, you can use the AGOLAttachmentAdder.

 

Unfortunately, the AGOLAttachmentAdder only accepts jpeg/png files, so you will have to save these attachments locally first before they can be available to the AGOLAttachmentAdder.

If you're looking to perform some cleanup on the local files, you could look into using the FileDeleter after you've added the attachments.


Forum|alt.badge.img
  • Author
  • August 5, 2022
danminneyatsaf wrote:

Hi @manca_ent​ when reading attachments with the ArcGIS Online Feature Service Reader with Include Attachments enabled, the attachments are read as their data type. You will then need to use an ImageRasterizer to convert these to a raster image, and then save these locally. If you want to add attachments to another ArcGIS Online Feature Service, you can use the AGOLAttachmentAdder.

 

Unfortunately, the AGOLAttachmentAdder only accepts jpeg/png files, so you will have to save these attachments locally first before they can be available to the AGOLAttachmentAdder.

If you're looking to perform some cleanup on the local files, you could look into using the FileDeleter after you've added the attachments.

This really helps, thank you.


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