seasketch / next

A modernization version of the SeaSketch platform, released in 2022.
https://seasketch.org
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Replacing shoretypes layer fails #750

Open wmcclin opened 1 month ago

wmcclin commented 1 month ago

I tried to replace the Shore Types layer in https://seasketch.org/california by dragging / dropping the attached file. It failed and now I cannot even view the Data Source tab in the layer editing dialog box without getting a blank page.

Shore types.geojson.zip

Screenshot 2024-05-21 at 8 28 59 AM Screenshot 2024-05-21 at 8 30 01 AM Screenshot 2024-05-21 at 8 29 04 AM
underbluewaters commented 1 month ago

This layer really tests the robustness of the tiling workflow. The source service contains a mix of LineString and MultiLineStrings, and also a number of features that don't contain enough points to form a valid Line. QGIS just drops the invalid features, which is what allows it to display the dataset. Exported outputs from QGIS can be uploaded to SeaSketch because they no longer contain these invalid points.

SeaSketch attempts to convert the dataset to Flatgeobuf before starting tiling. Because some "Lines" are in fact single coordinate Points features, the final output is a file with mixed geometry types. The GeometryType is "Unknown". Tippecanoe fails to tile because unknown geometry type is unsupported.

To solve this issue, the tiler will need to do a few things: