onthegomap/planetiler

Ignore a particular shp file

Opened this issue · 2 comments

How can I ignore a particular shp file from my source directory in CLI while generating mbtiles so i can use my desired shp file ?Please repy

AFAIK, I might be wrong):

In case of OpenMapTile schema it is not possible (yet) to skip certain shp files. But you can replace them with some "empty ones" and switch to them (via file name or URL) with configuration options, command line parameters or environment variables, see for example:

https://github.com/openmaptiles/planetiler-openmaptiles/blob/b3347b808326a666229287aa3ef735d4c1cc4ba9/src/main/java/org/openmaptiles/OpenMapTilesMain.java#L33-L35

If that is not enough, then following applies:

If you want to customize the OpenMapTiles schema or generate an mbtiles file with OpenMapTiles + extra layers, then fork ...

https://github.com/onthegomap/planetiler/blame/main/README.md#L143-L145

After that, I guess others might be interested too in such a change, hence PR would be welcome.

When using Planetiler in other ways (say custom map, etc.) then you are defining (among other things) all inputs, hence you can skip (un)desired ones.

@HayatSingh7409150572 how are you running planetiler?