I'm trying to move my GIS in cloud:) unfortunately I didn't find the information about how can I add files stored on FME-Cloud to AGOL.
F.e. I have the Vessels.kml file in Data folder on FME-Cloud/Resources and I want to add this file to AGOL. Is it possible or not?
Thanks in advance.
Best answer by gerhardatsafe
Hi @sega
You should be able to do this by setting the accept query parameter for the REST API request to 'contents' and also include the fmetoken query parameter. Here is an example:
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.
You definitely can write data from your resources on FME Cloud to AGOL. First, you will need to create a workspace with FME Desktop that writes, in your case, the KML dataset to AGOL ( Getting Started with FME Desktop). Before you publish the workspace to FME Server running on your FME Cloud instance you will need to adjust the path of the KML file in the KML Reader to match the location of the file you uploaded to FME Server. You can find the full path you need to use in the properties of the file:
Using this path with the FME Shared Resource parameter in the KML Reader will make sure you are reading the correct file.
You should be able to do this by setting the accept query parameter for the REST API request to 'contents' and also include the fmetoken query parameter. Here is an example:
You should be able to do this by setting the accept query parameter for the REST API request to 'contents' and also include the fmetoken query parameter. Here is an example: