Skip to content

Infinite looping while trying to drop features for TIGER generation #378

@watmildon

Description

@watmildon

Hello!

Love the tool. I am trying to move from an older version v2.45 to latest v2.80. The new version hits infinite looping while generating tiles at various zoom levels. Perhaps similar to #340

My terrible script to build the tiles for TIGERMap https://github.com/watmildon/TIGERMap/blob/main/build-tiles.sh

Any wisdom or things to get tracked down would be greatly appreciated. Thanks!

I think this should demonstrate the issue:

curl -O -L https://download.geofabrik.de/north-america/us-latest.osm.pbf
curl -O -L https://download.geofabrik.de/north-america/us/puerto-rico-latest.osm.pbf

osmium tags-filter --remove-tags --overwrite us-latest.osm.pbf nwr/addr:street -o us-latest-addrstreet.osm.pbf
osmium export --overwrite us-latest-addrstreet.osm.pbf -o us-latest-addrstreet.geojson --verbose -i dense_file_array

osmium tags-filter --remove-tags --overwrite puerto-rico-latest-tiger.osm.pbf nwr/addr:street -o puerto-rico-latest-addrstreet.osm.pbf
osmium export --overwrite puerto-rico-latest-addrstreet.osm.pbf -o puerto-rico-latest-addrstreet.geojson --verbose -i dense_file_array
tippecanoe -zg -l streetaddress -o us-latest-streetaddress.pmtiles --drop-densest-as-needed --extend-zooms-if-still-dropping us-latest-addrstreet.geojson puerto-rico-latest-addrstreet.geojson

Some small portion of output:

Going to try keeping the sparsest 80.00% of the features to make it fit
tile 8/76/94 has 89330 (estimated 106198) features, >200000
Need to drop features, but calculated that we should keep 120.5% of features
Going to try keeping the sparsest 80.00% of the features to make it fit
tile 8/40/91 has 43153 (estimated 70025) features, >200000
Need to drop features, but calculated that we should keep 182.8% of features
Going to try keeping the sparsest 80.00% of the features to make it fit
tile 8/41/89 has 51733 (estimated 85785) features, >200000
Need to drop features, but calculated that we should keep 149.2% of features
Going to try keeping the sparsest 80.00% of the features to make it fit
tile 8/77/94 has 48182 (estimated 75711) features, >200000
Need to drop features, but calculated that we should keep 169.1% of features
Going to try keeping the sparsest 80.00% of the features to make it fit

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