tile38
tile38 copied to clipboard
LineStrings don't render in MVTs
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.
A PR would be great. Thanks!
No problem - here you go! HTH
merged