8000 Accumulate mean operation broken · Issue #328 · felt/tippecanoe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Accumulate mean operation broken #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pierreleripoll opened this issue Mar 17, 2025 · 6 comments
Open

Accumulate mean operation broken #328

pierreleripoll opened this issue Mar 17, 2025 · 6 comments

Comments

@pierreleripoll
Copy link

Hi ! First of all thank's a lot for you work. I use tippecanoe everyday at work and I love it.

I just got a bug with tippecanoe v2.75.1:

 tippecanoe --force -zg \
        --coalesce-densest-as-needed \
        --accumulate-attribute=var1:mean \
        --accumulate-attribute=var2:mean \
        --accumulate-attribute=var3:mean \
        -o example-data.pmtiles example-data.json

gave me this error :

33927 features, 4109890 bytes of geometry and attributes, 2828005 bytes of string pool, 0 bytes of vertices, 0 bytes of nodes
Choosing a maxzoom of -z8 for features typically 685 feet (209 meters) apart, and at least 261 feet (80 meters) apart
Choosing a maxzoom of -z9 for resolution of about 804 feet (245 meters) within features
tile 6/33/22 size is 1076687 (probably really 1076687) with detail 12, >500000    
Going to try keeping the sparsest 37.15% of the features to make it fit
can't happen: operation that isn't used by --accumulate-numeric-attributes
make: *** [Makefile:3: generate-data] Error 106

When changing to sum accumulate function it works again.

@e-n-f
Copy link
Collaborator
e-n-f commented Mar 19, 2025

Thanks for the report! Would you be willing to share the example-data.json that you are seeing the error with?

@pierreleripoll
Copy link
Author
pierreleripoll commented Mar 19, 2025

Unfortunately it's private data I'm not allowed to share, but I will try to replicate the bug with sharable data

@e-n-f
Copy link
Collaborator
e-n-f commented Mar 19, 2025

Thank you!

@e-n-f
Copy link
Collaborator
e-n-f commented Mar 19, 2025

I was able to reproduce it. Looks like it happens when only some of the features have the attribute that is being accumulated.

@e-n-f
Copy link
Collaborator
e-n-f commented Mar 19, 2025

Specifically,

tippecanoe -z1 -f -o foo.mbtiles --accumulate-attribute=POP2000:mean ./tests/ne_110m_populated_places_nulls/in.json

fails.

@e-n-f
Copy link
Collaborator
e-n-f commented Mar 19, 2025

Will be fixed in #329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
0