I've been trying to rasterize big PBF (1.2GB) file using gdal_rasterize and got this error:
ERROR 1: Too many features have accumulated in lines layer. Use the OGR_INTERLEAVED_READING=YES configuration option, or the INTERLEAVED_READING=YES open option, or the GDALDataset::GetNextFeature() / GDALDatasetGetNextFeature() API. so I added --config OGR_INTERLEAVED_READING YES to gdal_rasterize command and the error dissapeared, but in result I've got empty file, that is gdalinfo -stats reports
ERROR 1: test2.tif, band 1: Failed to compute statistics, no valid pixels found in sampling. NoData Value=200 Metadata: STATISTICS_VALID_PERCENT=0 As a walkaround I converted the PBF to GPKG file, but I'm wondering if there is a way to use gdal_rasterize with large PBFs without converting.
I use GDAL 3.5.0 on Linux (Centos7).