mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-16 07:40:49 +01:00
Ignore GeoJSON features with null geometries
This commit is contained in:
parent
a660cbd463
commit
779f98a206
@ -603,6 +603,8 @@ bool GeoJSONParser::geometryCollection(const QJsonObject &object,
|
|||||||
bool GeoJSONParser::feature(const QJsonObject &object, const Projection &parent,
|
bool GeoJSONParser::feature(const QJsonObject &object, const Projection &parent,
|
||||||
QList<TrackData> &tracks, QList<Area> &areas, QVector<Waypoint> &waypoints)
|
QList<TrackData> &tracks, QList<Area> &areas, QVector<Waypoint> &waypoints)
|
||||||
{
|
{
|
||||||
|
if (object["geometry"].isNull())
|
||||||
|
return true;
|
||||||
if (!object["geometry"].isObject()) {
|
if (!object["geometry"].isObject()) {
|
||||||
_errorString = "Invalid/missing Feature geometry object";
|
_errorString = "Invalid/missing Feature geometry object";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user