Skip to content

reading and writing coordinates doesn't return same values #38

@jtheuer

Description

@jtheuer
$> echo '{"type":"LineString", "coordinates": [[10,52],[10.1,52.1]]}' | polyline --fromGeoJSON | polyline
[[-0.00002,52],[9.99998,52.1],[10.09998,52.09998]]

The rounding errors are probably by design but the coordinates are somehow corrupted.

@mapbox/polyline@1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions