You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MGLGeoJSONSource does not handle exceptions from GeoJSON parsing #6987
In the event that I query several hundred features, I wouldn't want it to fail just because one feature was corrupted and didn't have a geometry. Rather, it should throw a warning and ignore/skip that particular feature.
#7334 renamed MGLGeoJSONSource to MGLShapeSource. #7377 removes the crashing initializer in favor of a general-purpose deserialization method (for #3630). This method handles errors gracefully via an NSError out parameter, which is represented as the throws keyword in Swift.
Activity
nitrag commentedon Nov 10, 2016
In the event that I query several hundred features, I wouldn't want it to fail just because one feature was corrupted and didn't have a geometry. Rather, it should throw a warning and ignore/skip that particular feature.
1ec5 commentedon Dec 12, 2016
#7334 renamed MGLGeoJSONSource to MGLShapeSource. #7377 removes the crashing initializer in favor of a general-purpose deserialization method (for #3630). This method handles errors gracefully via an NSError out parameter, which is represented as the
throwskeyword in Swift.1ec5 commentedon Dec 14, 2016
Fixed in #7377 on the iOS SDK v3.4.0 release branch.