Skip to content

iOS: Handle GeoJSON with empty coordinates - #4536

Open
miakh wants to merge 2 commits into
maplibre:mainfrom
miakh:fix/1452-empty-geojson-coordinates
Open

iOS: Handle GeoJSON with empty coordinates#4536
miakh wants to merge 2 commits into
maplibre:mainfrom
miakh:fix/1452-empty-geojson-coordinates

Conversation

@miakh

@miakh miakh commented Aug 29, 2026

Copy link
Copy Markdown

Fixes #1452.

GeoJSON features with empty coordinate arrays now deserialize as empty features. Valid sibling features remain intact.

The regression tests cover Point, MultiPoint, LineString, MultiLineString, Polygon, and MultiPolygon, plus null geometry and non-UTF-8 input.

Tested with:

  • bazel test //platform/ios/test:ios_test --test_output=errors --//:renderer=metal --test_filter='MLNShapeSourceTests' (19 tests passed on an iPhone 15 simulator, iOS 26.5, Xcode 26.6)

AI usage: OpenAI Codex assisted under human supervision.

@github-actions github-actions Bot added the iOS label Aug 29, 2026
@miakh
miakh force-pushed the fix/1452-empty-geojson-coordinates branch from 8f88267 to 1f2ab2d Compare September 2, 2026 13:31
@miakh
miakh marked this pull request as ready for review September 2, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when adding GeoJSON with null geometry or empty coordinates on iOS

1 participant