Skip to content

GeoJSON processing - other data in GeoJSON file not being preserved #693

@siromega

Description

@siromega

I have a GeoJSON file I am processing through Mapshaper.

{"type":"FeatureCollection", "features":[ ..... ], "metadata":{"errata":[], "totalFeatures":23,"timeStamp":"2026-05-15T10:27:03.221Z"},"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}}}

Unfortunately it is keeping the features and nothing else. The metadata and crs properties are not being preserved. This is the command I am running.

npm exec -- mapshaper -i $file --clean allow-overlaps --filter-slivers remove-empty -o $file force metadata

Thank you.

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