Skip to main content
Solved

All Attributes from GeoJSON Retrieved via HTTPCaller (FME 2021)


fmegrinder
Contributor
Forum|alt.badge.img+4

I'm working with FME 2021 and have run into a challenge regarding dynamic GeoJSON handling.

I use the HTTPCaller to retrieve GeoJSON from several hundred different services. Each service returns features with different attribute schemas. My goal is to dynamically expose all attributes and the geometry from each GeoJSON response and write them to various formats (e.g., GDB, Shapefile, etc.).

I've tested workflows using JSONFragmenter and manually selected attributes, but this approach doesn't scale—it’s not feasible to manually configure the schema for hundreds of unique GeoJSON sources.

Is there a robust and dynamic way in FME 2021 to automatically expose all properties (attributes) in each feature, regardless of schema, along with the geometry?

Appreciate any guidance or best practices for handling this kind of dynamic schema in FME 2021.

Best answer by ebygomm

SchemaScanner definitely available in 2021.2.3.0 (Build 21812) - i believe a new and improved version was released in 2022 although the version number in 2024 remains version 1….

View original
Did this help you find an answer to your question?

7 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

There is no thing as dynamically exposing attributes in FME. When you need dynamic writing, the way to go is to use a Schema feature and feed this in the FeatureWriter. A Schema Feature is default output from the FeatureReader. You can also use the SchemaScanner to generate a Schema feature from datafeatures.


alexbiz
Enthusiast
Forum|alt.badge.img+12
  • Enthusiast
  • May 21, 2025

Can you update your FME ? In FME 2022, the SchemaScanner was released. It would greatly ease your dynamic workflow.

https://support.safe.com/hc/en-us/articles/25407488330509-Dynamic-Workflows-with-the-SchemaScanner

Else, you could try to set your HTTPCaller to download the result in files, and read them with a FeatureReader. The FeatureReader will output Schema features for each file you can use in a writer.


EDIT : if you’re not used to “dynamic workflow”, you should read about it there :
 https://support.safe.com/hc/en-us/articles/25407480725645-Tutorial-Dynamic-Workflows


nielsgerrits
VIP
Forum|alt.badge.img+54
alexbiz wrote:

Can you update your FME ? In FME 2022, the SchemaScanner was released. It would greatly ease your workflow.

The SchemaScanner is available in 2021. (At least in 2021.2.6)

alexbiz wrote:

Else, you could try to set your HTTPCaller to download the result in files, and read them with a FeatureReader. The FeatureReader will output a Schema feature you can use in a writer.

Yes, this is probably the easiest way.

Attached working sample.


alexbiz
Enthusiast
Forum|alt.badge.img+12
  • Enthusiast
  • May 21, 2025

Hm, I’m pretty sure it was released in 2022. Here’s our article about it:
https://www.veremes.com/actus/sortie-de-fme-2022
(Sorry, it’s a French resource!)

It must have been backported then! Or we might have included this one in the 2022 new features if it was a late release of 2021.

It would be interesting to have the date and versions of transformers vs version of FME in the official documentation !


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • May 21, 2025

SchemaScanner definitely available in 2021.2.3.0 (Build 21812) - i believe a new and improved version was released in 2022 although the version number in 2024 remains version 1….


fmegrinder
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • May 26, 2025

Thanks for the suggestions!

Unfortunately, upgrading is not an option at the moment since my customer is using FME 2021.0, and we don’t have access to the SchemaScanner.

I’ve already tried the workaround where I write the result to file and then use a FeatureReader to dynamically handle the schema. However, there are two major issues with this approach:

Many requests return no data, but users still expect a file to be generated for confirmation purposes. The FeatureReader throws hundreds of warnings when reading empty files, and this behavior is not acceptable to my customer.

There's a strange bug: when publishing a workspace that uses the FeatureReader, some other files on the server are randomly removed. We haven’t been able to fully identify the root cause, but this makes the approach unreliable in production.

Due to these limitations, the current workaround using the FeatureReader is not viable for us. We're looking into other ways to build a static schema or dummy feature to maintain consistency, but it's far from ideal.

Let me know if anyone has other ideas that work in 2021.0 without relying on FeatureReader or SchemaScanner.


nielsgerrits
VIP
Forum|alt.badge.img+54
fmegrinder wrote:

Due to these limitations, the current workaround using the FeatureReader is not viable for us. We're looking into other ways to build a static schema or dummy feature to maintain consistency, but it's far from ideal.

This is at least something which will technically work, but I agree it will take some work.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings