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?

  • 4 August 2022
  • 2 replies
  • 44 views

Badge

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?

icon

Best answer by danminneyatsaf 4 August 2022, 21:36

View original

2 replies

Userlevel 2
Badge +10

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.

Badge

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.

Reply