Hi @sega
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.
I hope this helps!
Hi @GerhardAtSafe
Thank you for you answer. But I want to add the KML file from
to
to.jpg
via link to my KML file:
https://***fmecloud.com/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/USGS.kml
Is it possible or not? I don't want use any workbenches to add this data to AGOL in this task.
I tried to use this link with token parameter too, but in both situations I met the error error.jpg.
Thanks in advance.
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:
https://***fmecloud.com/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/USGS.kml?accept=contents&fmetoken;=<your_API_token>
I think we're at cross purposes here. OP wants to write KML as a web item, which isn't OOTB.
http://doc.arcgis.com/en/arcgis-online/reference/kml.htm