Skip to content

Spatial output: MultiLineString gets mangled into a LineString #5352

Open

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

MultiLineStrings should be represented as [LineString, LineString, ...].
As of HC 12.12 / 13 it seems all the contained LinesStrings get concatenated into one single array of coordinates, which gets really wonky if the LineStrings aren't actually contigous:

BrokenMultiLineString

Manually serializing the same string with NTS.IO and sending it as a raw string gives the expected result:
CorrectMultiLineString

Steps to reproduce

  1. Create a MultiLineString consisting of 2 or more LineStrings.
  2. Request the MLS from your gql client.
  3. Observe that the returned output is 2-dimensional, not 3-dimensional.

Relevant log output

No response

Additional Context?

From existing issues and PRs it seems a similiar problem was fixed for MultiPolygon already.

Product

Hot Chocolate

Version

12.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions