Earthquake KML Streaming Example | Data Streaming in FME Flow

Liz Sanderson
Liz Sanderson
  • Updated

Introduction

Streaming data via a URL is a great way to share data with someone who does not have FME installed or you are sharing a dataset that is local on your computer or coming from a live feed. You could also embed the direct URL into another project, such as a web map. For an example on how to create an FME Flow App that utilizes data streaming, please see the article on FME Flow App Examples.

In this example, we review the demo workspace included with FME Flow in the Samples repository.  

The Workspace

Let’s review what the workspace is doing. You can either download the workspace from the Files section of this article, or, if you have FME Flow installed, download the earthquakesextrusion.fmw from the Samples repository. 

WorkspaceOverview.png

The workspace is fairly straightforward: it reads a GeoJSON feed from USGS, then, based on the magnitude listed in the JSON, raises it to the power of 10 to exaggerate the data. 

ExpressionEval.png

Next, the workspace uses the KMLDiagrammer custom transformer, available for download from the FME Hub. This transformer creates features that appear in 3D when opened in Google Earth

KMLDiagrammer.png

Once the earthquake extrusions have been created, they are then sorted by magnitude and colored red. Finally, the data is written out to OGC/Google KML. 

Set Up Data Streaming in FME Flow

Data streaming setup begins in FME Workbench when the data is uploaded to FME Flow. When using the FME Flow Publishing Wizard, on the final page where you Register Services, be sure to enable Data Streaming. If you have more than one writer, click on Edit to confirm which writers you would like to use for the output. 

DataStreamingService.png

Once the data has been published to FME Flow, navigate and log in to FME Flow to continue setting up the data stream. 

In FME Flow, navigate to the Run Workspace page, then select Samples as the Repository, earthquakesextrusion.fmw as the Workspace, then set the Service to Data Streaming. 

Runworkspace.png

If you clicked Run, the workspace would run, and quakes.kml would be downloaded to your computer. Instead, let’s build our URL to share with other users. 

Ensure that the Guest role is enabled on your FME Flow, then change the following URL to your FME Flow hostname:

<hostname or FME Cloud URL>/fmedatastreaming/Samples/earthquakesextrusion.fmw

Data Attribution

The data used here are from the USGS (United States Department of the Interior). It contains information available to the public domain.

Was this article helpful?

We're sorry to hear that.

Please tell us why.

As of January 14th, 2026, comments on knowledge base articles have been closed. To make sure questions don’t get missed and to enable more community support, we’ve moved discussions to the FME Community. If you have a question or a comment about this article, please create a new post or create a support ticket.