Skip to content

Commit

Permalink
GeoJSON: avoid multiple debug messages about mixed-geometry type
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 25, 2024
1 parent f160dfd commit 08cbb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ bool OGRGeoJSONUpdateLayerGeomType(bool &bFirstGeom,
{
// ok
}
else if (eGeomType != eLayerGeomType)
else if (eGeomType != eLayerGeomType && eLayerGeomType != wkbUnknown)
{
CPLDebug("GeoJSON", "Detected layer of mixed-geometry type features.");
eLayerGeomType = wkbUnknown;
Expand Down

0 comments on commit 08cbb83

Please sign in to comment.