-
Notifications
You must be signed in to change notification settings - Fork 609
Closed
Description
Describe the bug
LineStrings don't render in MVTs
To Reproduce
Steps to reproduce the behavior:
- SET tracks 1 OBJECT '{"type":"LineString","coordinates":[[0,0],[1,1]]}'
- Retrieve appropriate MVT.
- Observe no LineString is rendered.
Expected behavior
A LineString is shown when retrieving the MVT.
Additional context
Looks like the problem is this line that doesn't use the index i in the loop, e.g. p := line.PointAt(0) should be p := line.PointAt(i). Could also add a guard to check we have >= 2 points.
Happy to provide a PR if helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels