Skip to content

Could not properly place hole to a parent #761

@palmerj

Description

@palmerj

I get the following error when running tippecanoe on a large polygon dataset:

tippecanoe -zg -P -f -o parcels-coalesce.mbtiles -D11 --no-polygon-splitting --coalesce-fraction-as-needed --include=id --include=parcel_intent --include=appellation nz_primary_parcels.geojson
For layer 0, using name "nz_primary_parcels"
nz_primary_parcels.geojson:290347: Reached EOF without all containers being closed
In JSON object {"type":"FeatureCollection","name":"nz_primary_parcels","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4167"}},"features":[]}
nz_primary_parcels.geojson:338068: Found ] at top level
2580390 features, 422301311 bytes of geometry, 35158737 bytes of separate metadata, 65201523 bytes of string pool
Choosing a maxzoom of -z11 for features about 215 feet (66 meters) apart
Choosing a maxzoom of -z13 for resolution of about 47 feet (14 meters) within features
tile 5/31/20 size is 1027657 with detail 11, >500000
Going to try keeping 46.22% of the features to make it fit
tile 5/31/19 size is 1291787 with detail 11, >500000
Going to try keeping 36.77% of the features to make it fit
tile 5/31/20 size is 746651 with detail 11, >500000
Going to try keeping 29.41% of the features to make it fit
tile 5/31/19 size is 827652 with detail 11, >500000
Going to try keeping 21.10% of the features to make it fit
tile 5/31/20 size is 592952 with detail 11, >500000
Going to try keeping 23.56% of the features to make it fit
tile 5/31/20 size is 529787 with detail 11, >500000
Going to try keeping 21.12% of the features to make it fit
tile 5/31/19 size is 621905 with detail 11, >500000
Going to try keeping 16.12% of the features to make it fit
tile 5/31/20 size is 503675 with detail 11, >500000
Going to try keeping 19.92% of the features to make it fit
tile 5/31/19 size is 544664 with detail 11, >500000
Going to try keeping 14.06% of the features to make it fit
tile 5/31/19 size is 511353 with detail 11, >500000
Going to try keeping 13.06% of the features to make it fit
Could not properly place hole to a parent.
Internal error: Polygon cleaning failed. Log in /tmp/wagyu.log

Contents of wagyu.log is:

Could not properly place hole to a parent.
[[[308,1234],[310,1234],[310,1236],[308,1236],[308,1234]],[[310,1234],[309,1235],[309,1234],[310,1234]],[[308,1235],[309,1235],[308,1236],[308,1235]],[[310,1235],[309,1235],[309,1234],[310,1235]],[[309,1232],[309,1231],[310,1232],[309,1232]],[[310,1232],[311,1232],[309,1231],[310,1232]],[[311,1233],[311,1232],[310,1233],[311,1233]],[[311,1232],[310,1232],[310,1231],[311,1232]],[[312,1232],[311,1232],[311,1231],[312,1232]],[[310,1234],[311,1233],[311,1234],[310,1234]],[[310,1235],[309,1234],[310,1234],[310,1235]],[[310,1234],[311,1234],[311,1235],[310,1234]],[[310,1235],[311,1235],[310,1236],[310,1235]],[[311,1234],[310,1234],[310,1233],[311,1234]],[[311,1234],[312,1233],[312,1234],[311,1234]],[[311,1234],[312,1235],[311,1235],[311,1234]],[[311,1235],[311,1236],[310,1235],[311,1235]],[[309,1235],[308,1237],[308,1236],[309,1235]],[[309,1238],[308,1237],[307,1238],[308,1237],[309,1238]],[[309,1239],[308,1239],[309,1238],[309,1239]],[[309,1237],[308,1238],[308,1237],[309,1237]],[[308,1239],[309,1239],[309,1240],[308,1239]],[[309,1239],[308,1240],[310,1239],[309,1239]],[[310,1236],[311,1237],[310,1237],[310,1236]],[[310,1237],[309,1238],[309,1237],[310,1237]],[[311,1236],[311,1235],[310,1236],[311,1236]],[[311,1236],[311,1237],[310,1236],[311,1236]],[[310,1238],[309,1238],[310,1237],[310,1238]],[[310,1239],[309,1239],[310,1238],[310,1239]],[[310,1240],[309,1239],[310,1239],[310,1240]],[[311,1238],[311,1237],[312,1238],[311,1238]],[[311,1239],[312,1238],[311,1238],[311,1239]],[[311,1239],[310,1238],[311,1238],[311,1239]]]

I have validated the source data in spatialite with Is_valid and all polygons are OGC valid.

Dataset used for the command is: https://www.dropbox.com/s/5fr0gxr8zs7jidt/nz_primary_parcels.geojson.gz?dl=1

Tippecanoe version: v1.34.3

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