Skip to content

Different number of records in .shp and .dbf files #67

@Renaud009

Description

@Renaud009

Providing two polygons Features to method shpwrite.download() with following GeoJSON and an empty options object:

{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-11163474.973548545,7228699.2719911495],[-10869956.784933466,8158173.5359388925],[-9989402.219088236,6984100.781478586],[-10703629.811384924,5604565.294987724],[-11848350.746983724,5761108.3289157655],[-11163474.973548545,7228699.2719911495]]]},"properties":{"name":"feature_1","description":"","type":"Polygon"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-10772117.388728442,10163881.158141918],[-11271098.309374074,11015083.90512564],[-12122301.056357795,10516102.984480008],[-11623320.135712164,9664900.237496287],[-10772117.388728442,10163881.158141918]]]},"properties":{"name":"feature_2","description":"","type":"Square"}}]}

Then when loading shapefile with https://mapshaper.org/ I get this error "Different number of records in .shp and .dbf files". Can anyone help me?

Thanks

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