felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
906 stars 78 forks source link

[Help] : PMTiles output is not working #166

Open kshitijrajsharma opened 9 months ago

kshitijrajsharma commented 9 months ago

Version used : tippecanoe v2.37.0

command :

tippecanoe -zg --projection=EPSG:4326 -o exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/test12z.pmtiles -l testzzz exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/testzzz.geojson --force

Error :

tippecanoe: Tileset "exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/test12z.pmtiles" already exists. You can use --force if you want to delete the old tileset.
tippecanoe: database is locked

I am using the --force option , and made sure there is no previous file in the disk before running the command , Can you help me out what I am doing wrong ?

jamesscottbrown commented 8 months ago

I think the problem is that you added --force after the input filename: try moving it to before.

Instead of this command:

tippecanoe -zg --projection=EPSG:4326 -o exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/test12z.pmtiles -l testzzz exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/testzzz.geojson --force

Try this:

tippecanoe -zg --projection=EPSG:4326 -o exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/test12z.pmtiles -l testzzz --force exports/testzzz_pmtiles_uid_273d0107-f0b1-49e9-9be4-bc6a8d97bff4/testzzz.geojson