Skip to content

Multi Linestring with 'EMPTY' in the point throwing error #167

@jnylen

Description

@jnylen

Hi,

Lovely lirary but we are having an issue with MULTILINESTRINGs where it includes "EMPTY" in it similar to:

SRID=4326;MULTILINESTRING((17.3184738535347 60.7864700694704,17.3180661577644 60.7874544933595),EMPTY,EMPTY)

It would then throw this error:

** (DBConnection.ConnectionError) client #PID<0.2818.0> stopped: ** (FunctionClauseError) no function clause matching in anonymous fn/2 in Geo.WKB.Decoder.do_decode/4
    (geo 3.4.2) lib/geo/wkb/decoder.ex:121: anonymous fn(1, <<1, 2, 0, 0, 0, 0, 0, 0, 0>>) in Geo.WKB.Decoder.do_decode/4

The line in the log are kinda incorrect. The lines that matter are these: https://github.com/bryanjos/geo/blob/master/lib/geo/wkb/decoder.ex#L108-L111

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions