Skip to content

geojson.parse ignores alt value #54

@idokleinman

Description

@idokleinman

Given
let pointObj = {lat: 1.1, lon: 2.2, alt: 3.3, test: 'test'};
let point = geojson.parse(pointObj, { Point: ['lat', 'lon', 'alt'] });

point will equal
{ type: 'Point', coordinates: [ 2.2, 1.1 ] }
alt value has been dropped.
Why?

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