From 779f98a206f55872e19064b33073b9bdbfa2da3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 27 Mar 2024 09:07:39 +0100 Subject: [PATCH] Ignore GeoJSON features with null geometries --- src/data/geojsonparser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/geojsonparser.cpp b/src/data/geojsonparser.cpp index e9468eb2..0b18c27f 100644 --- a/src/data/geojsonparser.cpp +++ b/src/data/geojsonparser.cpp @@ -603,6 +603,8 @@ bool GeoJSONParser::geometryCollection(const QJsonObject &object, bool GeoJSONParser::feature(const QJsonObject &object, const Projection &parent, QList &tracks, QList &areas, QVector &waypoints) { + if (object["geometry"].isNull()) + return true; if (!object["geometry"].isObject()) { _errorString = "Invalid/missing Feature geometry object"; return false;