I have a FME Server web workspace converting a file from SHP to KML, once it runs it outputs a kml file, I need to be able to take this file and drop into my web API google Map. Is there a way to retrieve this temporary file and display in my web map?


Yes with Data Streaming the KML - See 'Stream KML Google Maps'


var ctaLayer = new google.maps.KmlLayer('http://fmeserver.com:80/fmedatastreaming/Samples/austinApartments.fmw?');

is doing the request on the page request (on first load or refresh)

FME Server is running the workspace and delivering the KML back to the map and the KML is drawn on top of the Google Map.

Credit for Stewart Harper of SafeSoftware.com for creating the interactive examples.

  • I have seen these examples, however it doesn't seem to work. Has anyone had any luck 'reloading' the file? I am using an example on the new playground site to load on a button. playground.fmeserver.com/code-samples/data-streaming/… – Bob C Jun 10 '14 at 13:24
  • What does not work? I have this running on our FME Server and the example is working. – Mapperz Jun 10 '14 at 14:19
  • I don't know if it is my network security, as it should be working. One thing I was wondering was the playground.fmeserver.com/getting-started/security this says it does not work for IE (basic authentication) so what it the alternative (not REST!). If I use the playground streaming service URL it works fine, my code is the same but the server path if different. – Bob C Jun 10 '14 at 15:29
  • Sounds like a firewall setting blocking your request response. – Mapperz Jun 10 '14 at 16:03
  • test this 'fmeserver.com/fmedatastreaming/Samples/…' you should get a response in KML format then replace 'fmeserver.com' with your IP/DNS hostname. Port 80 should be open. – Mapperz Jun 10 '14 at 16:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.