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?

  • August 4, 2022
  • 2 replies
  • 193 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

danminneyatsaf
Safer
Forum|alt.badge.img+13

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

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.