[This webmap][1] shows raster tiles overlaid on OSM rastertiles. One such tile, for example [the `10/508/336` tile][2] looks like this:

![](https://gb-power.russss.dev/tiles/gb_power/webmercator/10/508/336.png)

I would like to create a directory of such tiles using command line tools. Here is an example GeoJSON:

    {
    "type": "FeatureCollection",
    "name": "source",
    "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
    "features": [
    { "type": "Feature", "properties": { }, "geometry": { "type": "LineString", "coordinates": [ [ 4.90571755, 50.00687119 ], [ 4.26413271, 50.41744784 ], [ 3.53584721, 49.9399581 ], [ 3.54162726, 49.39377674 ], [ 4.36817349, 49.03887689 ], [ 4.9924182, 49.27701689 ], [ 5.00397829, 49.55902504 ], [ 4.36817349, 49.55527559 ] ] } }
    ]
    }

It covers the `7/65/43` tile:

[![enter image description here][3]][3]

In the directory structure I would like to create, 7/65/43.png would look something like this (I left the red boundary, so it is easier to see where the boundary of the image is):

[![enter image description here][4]][4]

I know about [tippecanoe][5], and vector tiles in general. Here, I am asking about raster tiles. In https://gis.stackexchange.com/questions/289826/directly-generate-xyz-tiles-from-geojson, [tippecanoe is suggested][6]. In https://gis.stackexchange.com/questions/221372/how-to-convert-geojson-file-to-xyz-tiles, [QGIS is suggested][7]. I would like to use command line tools. GDAL can do many things, I hope it can do this as well (but I'm open to other tools as well). I have read about [gdal2xyz][8], but the input is a raster file, not a vector file.

**How to create a directory of raster tiles from a GeoJSON using command line tools?**


  [1]: https://gb-power.russss.dev/#10/51.9980/-2.5674
  [2]: https://gb-power.russss.dev/tiles/gb_power/webmercator/10/508/336.png
  [3]: https://i.sstatic.net/LRhPLxAd.png
  [4]: https://i.sstatic.net/ZL4o4gZmm.png
  [5]: https://github.com/felt/tippecanoe
  [6]: https://gis.stackexchange.com/a/289914/191643
  [7]: https://gis.stackexchange.com/a/221434/191643
  [8]: https://gdal.org/programs/gdal2xyz.html