'How to load billions of vector features in Mapbox Tileset

We want to load billions of vector features (polygons) to Mapbox Tileset.

The data comes in CSV format in about 7000 files (1.8 TB total), we convert the CSV files to GeoJSON files using the following command:

ogr2ogr -f GeoJSON output.geojson -dialect sqlite -sql "SELECT id,GeomFromText(geometry),name FROM input" input.csv -a_srs EPSG:4326

We are thinking of merging the GeoJSON files into MBTiles (to compress the data), but there is a limit of 25 GB for each MBTiles, so we need around 80 MBTiles to load all the data.

Is there a better way to do that? if not, is it possible to merge all loaded tiles into the same tileset in MapBox?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source