Skip to main content

I have a workspace app that accepts a kmz dropped on it. The result is a postgres/postgis spatial overlay with the kmz. When there is no resulting feature I need to send a message to the app instead of the resulting data. I have added NoFeature testers into my workspace to capture any streams that do not have output.

Just not sure how to generate a report and get that to the app when the workspace completes.

I am thinking now it would be nice to have a count from each of the input data streams whether there is a spatial relate or not.

Thanks for any direction.Capture

Hi @Brad Nesom​,

 

Have you seen the HTMLReportGenerator? I'm not sure what your data looks like but you could either make a table with it or perhaps add AttributeCreators after the different drives and add a new message that says "There are no features from ___ Drive." I see you have StatisticsCalculators in the workspace already. These could also be used to get the total count of features at any point in the workflow.

 

I've made a quick example in FME 2023 to show my ideas.


Thank you siennaatsafe I was able to use the file parameter from the app along with the FilnamePartExtractor to get all of the features into the same excel output.

Capture2however I would like to integrate the statistics into the app itself. Is it possible to display more than just the zipped output file along with counts of features (the no feature count is always going to be just one which i recalculate to 0.

I have renamed the NoFeatureTesters with values that are going all the way through to the output.

I then use conditional statements to replace feature attributes with values from nofeature features.

Capture3So I am saying all this to say that I have all the values that i need to populate the web page with. but am not sure what to do to get any values to update the app as it is completed.

Currently i only have the data downloads returning a link to the zip file created.

Capture5Do i need to enable and edit the data stream to get the html table into the body of the app?Capture6


Thank you siennaatsafe I was able to use the file parameter from the app along with the FilnamePartExtractor to get all of the features into the same excel output.

Capture2however I would like to integrate the statistics into the app itself. Is it possible to display more than just the zipped output file along with counts of features (the no feature count is always going to be just one which i recalculate to 0.

I have renamed the NoFeatureTesters with values that are going all the way through to the output.

I then use conditional statements to replace feature attributes with values from nofeature features.

Capture3So I am saying all this to say that I have all the values that i need to populate the web page with. but am not sure what to do to get any values to update the app as it is completed.

Currently i only have the data downloads returning a link to the zip file created.

Capture5Do i need to enable and edit the data stream to get the html table into the body of the app?Capture6

Hi @Brad Nesom​,

 

Unfortunately, you have to decide if you want to use Data Streaming or the Data Download service. FME currently can't do both.

 

So you could use the data download service, and then the output would include the KML file and an HTML file with the results.

 

Alternatively, you could look into the data streaming service, which would stream the HTML report back to the user. Here, you could also include a link to download the file which the user would select.

2023-08-29_09-59-15 


Reply