I have just recently started to use MapBox. I am trying to convert a huge GeoJSON file (1.28GB) into MVT for uploading into a MapBox. I am using
ogr2ogr and this command-line:
ogr2ogr -progress --config GDAL_CACHEMAX 2048 -f MVT -s_srs EPSG:4326 -t_srs EPSG:3857 grid.mbtiles grid.geojson
This creates grid.mbtiles and after uploading into Mapbox, it reports an error:
Tile exceeds maximum size of 500k at z5. Reduce the detail of data at this zoom level or omit it by adjusting your minzoom
I have tried to convert using the next parameters
-dsco SIMPLIFICATION=5 -dsco MINZOOM=5 -dsco MAXZOOM=10
but I still get the very same error.
Could you help me how to solve this issue or give me some advice on how to properly create a vector tileset? How could I determine that the size of particular tiles exceeds this limit before uploading it into a Mapbox studio?