1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Ignore GeoJSON features with null geometries

This commit is contained in:
Martin Tůma 2024-03-27 09:07:39 +01:00
parent a660cbd463
commit 779f98a206

View File

@ -603,6 +603,8 @@ bool GeoJSONParser::geometryCollection(const QJsonObject &object,
bool GeoJSONParser::feature(const QJsonObject &object, const Projection &parent,
QList<TrackData> &tracks, QList<Area> &areas, QVector<Waypoint> &waypoints)
{
if (object["geometry"].isNull())
return true;
if (!object["geometry"].isObject()) {
_errorString = "Invalid/missing Feature geometry object";
return false;