Skip to content

LineStrings don't render in MVTs #788

@metaxasa

Description

@metaxasa

Describe the bug
LineStrings don't render in MVTs

To Reproduce
Steps to reproduce the behavior:

  1. SET tracks 1 OBJECT '{"type":"LineString","coordinates":[[0,0],[1,1]]}'
  2. Retrieve appropriate MVT.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions