Skip to content
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

Different layers with same layer name #315

Open
quantumcode-martin opened this issue Jan 22, 2025 · 1 comment
Open

Different layers with same layer name #315

quantumcode-martin opened this issue Jan 22, 2025 · 1 comment

Comments

@quantumcode-martin
Copy link

Hi, thanks for the amazing work on tippecanoe, such a great tool!

I have encounter an edge case I would like to discuss.
I have this file structure:

├── sources
│   ├── a
│   │   ├── layer_one.geojson
│   │   └── layer_two.geojson
│   └── b
│       ├── layer_one.geojson
│       └── layer_two.geojson

I run

tippecanoe -o test.mbtiles sources/*/*.geojson

I was hopping the result would be 2 layers named layer_one and layer_two.

But the output gives:

For layer 0, using name "layer_one"
For layer 1, using name "layer_two"
For layer 2, using name "layer_one"
For layer 3, using name "layer_two"

And as stated I end up with 4 layers, with some of them sharing the same name (I don't know if it's ok for tile layers to share the same name, seems like it's working at least with mbview).

I was wondering if you think it's a good idea to modify this behavior so it is easier to merge files into separated layers.

@e-n-f
Copy link
Collaborator

e-n-f commented Jan 22, 2025

Good catch! I agree that these should be getting merged into the same layer instead of having multiple layers with the same name. I'll take a look and see how straightforward it would be to make that change.

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