Skip to content

Parse not working for POINT with space(s) after first parenthesis and/or space(s) before last parenthesis #33

Description

@bflemi3

Parsing fails for WKT POINTS that have spaces directly after the open parenthesis and/or directly before the closing parenthesis. I haven't tested this issue on other types of geometry.

POINT ( -68.1712366598 -16.5122344611 4124.6247727228 )

var parse = require('wellknown'),
    geometry = parse('POINT ( -68.1712366598 -16.5122344611 )');
console.log(geometry);// geometry will be null

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