Select to view content in your preferred language

GeoJson with multiple feature collections

2050
2
12-08-2023 07:24 AM
diffmarc
Emerging Contributor

Hello,

 

I want to create a data pipeline for a public geojson, which contains multiple feature collections, with different geometry types.

The resulting feature layer should only contain one of said collections.

 

Is it possible to filter for this? 

 

For the moment, when I built a data pipeline for the geojson file, I get only one of the feature collections into my layer, but it is always the very first one (which I unfortunatly don't need).

 

Thanks a lot.

0 Kudos
2 Replies
MaxPayson
Esri Contributor

Hi Romain,

Thanks for the question!

Can you share a link to the public data so we can investigate the structure? Is it a single file, with a top-level array of feature collection objects? Such as:

[
  {"type": "FeatureCollection", "features": []},
  {"type": "FeatureCollection", "features": []}
]

Best,

Max

0 Kudos
diffmarc
Emerging Contributor

Hello Max,

 

thank you for replying.

 

This is the the link to the collection: https://download.data.public.lu/resources/plan-cadastral-numerise-pcn/20231211-045325/pcn.geojson

 

The data is structured the following way:

{"layer1":{"type": "FeatureCollection", "features": []},

"layer2":{"type": "FeatureCollection", "features": []},

...}

 

Best,

Romain

0 Kudos