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:
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:
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.