chrieke / geojson-invalid-geometry

🗺️ List of GeoJSON invalid geometry issues with example files
MIT License
33 stars 0 forks source link

feature-collection w/ one feature #4

Open jessekrubin opened 3 days ago

jessekrubin commented 3 days ago

why is examples/problematic_geometries/problematic_multitype_geometry_with_just_one_geometry.geojson problematic?

The geojson spec says a feature collection can have 0+ features

chrieke commented 3 days ago

Hey, yes you are correct. It's not invalid (not in the invalid category), but listed here as a "problematic" example (problematic category). As a reminder that this case should be handled in your code/tool, which some don't and sometimes fail when feeding in this type.

jessekrubin commented 3 days ago

@chrieke thanks for your reply!

I found 2 more problems.

jessekrubin commented 3 days ago

structurally invalid

mixed feelings

chrieke commented 3 days ago

Thanks for checking it out and the comments and suggestions! Will have a look on the weekend and get back!

jessekrubin commented 3 days ago

@chrieke no problemo! lmk if there is anything I can do to help! thanks for putting this repo together!