Hi,

When reading xlsx files that contains a lot of lines gdal reports the
following error multiple times:
| Adding too many columns to too many existing features

It comes from the the xlsx driver:
GIntBig nFeatureCount = poCurLayer->GetFeatureCount(false);
if( nFeatureCount > 0 &&
    static_cast<size_t>(apoCurLineValues.size() -
        poCurLayer->GetLayerDefn()->GetFieldCount()) >
            static_cast<size_t>(100000 / nFeatureCount) )
{
    CPLError(CE_Failure, CPLE_NotSupported,
                "Adding too many columns to too many "
                "existing features");
    return;
}

The featureCount in my case is 128741
apoCurLineValues.size() = 8
fieldCount = 7

Why is this error reported? Does it impact the actual read data?
I do notice when I open the file in excel and select everything, the eight
column in the file is empty but also gets selected.

Kind regards,
Dirk
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to