diff --git a/ogr/ogrsf_frmts/geojson/ogrgeojsonseqdriver.cpp b/ogr/ogrsf_frmts/geojson/ogrgeojsonseqdriver.cpp index 78300115733b..40d9e6cf678c 100644 --- a/ogr/ogrsf_frmts/geojson/ogrgeojsonseqdriver.cpp +++ b/ogr/ogrsf_frmts/geojson/ogrgeojsonseqdriver.cpp @@ -367,6 +367,7 @@ bool OGRGeoJSONSeqLayer::Init(bool bLooseIdentification, { m_poFeatureDefn->AddFieldDefn(apoFieldDefn[idx].get()); } + m_poFeatureDefn->Seal(true); m_oReader.FinalizeLayerDefn(this, m_osFIDColumn); }