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
Describe the bug
If we put a geojson with some polygons having z coordinates and others not having them, then the way geojson currently handles it would head to a panic and the server crash.
Here is the related PR on geojson that would fix the panic (but not the issue) tidwall/geojson#26
To Reproduce
Steps to reproduce the behavior:
Run the following commands
> set abc test object {"type":"Polygon","coordinates":[[[0,0],[10,0],[0,10],[0,0]],[[0,0,0],[0,10,0],[10,0,0],[0,0,0]]]}
@tidwall - thanks! according to geojson spec it's a valid one though (validated with various linters). However, this fix works as well, I'd recommend responding with "invalid coordinates must provide z coordinate for all polygons" or something as such.
Describe the bug
If we put a geojson with some polygons having z coordinates and others not having them, then the way geojson currently handles it would head to a panic and the server crash.
Here is the related PR on geojson that would fix the panic (but not the issue)
tidwall/geojson#26
To Reproduce
Steps to reproduce the behavior:
Run the following commands
> set abc test object {"type":"Polygon","coordinates":[[[0,0],[10,0],[0,10],[0,0]],[[0,0,0],[0,10,0],[10,0,0],[0,0,0]]]}
> get abc test
This leads to tile38-server crashing.
Expected behavior
Tile38 should respond with
{"ok":true,"object":{"type":"Polygon","coordinates":[[[0,0],[10,0],[0,10],[0,0]],[[0,0,0],[0,10,0],[10,0,0],[0,0,0]]]},"elapsed":"17.224µs"}
Logs
Operating System (please complete the following information):
Additional context
Draft creating the panic in geojson tidwall/geojson#26
The text was updated successfully, but these errors were encountered: