diff --git a/src/osgEarthFeatures/AltitudeFilter.cpp b/src/osgEarthFeatures/AltitudeFilter.cpp index 7491b4fb2b..c8d95f1e4b 100644 --- a/src/osgEarthFeatures/AltitudeFilter.cpp +++ b/src/osgEarthFeatures/AltitudeFilter.cpp @@ -91,6 +91,8 @@ AltitudeFilter::pushAndDontClamp( FeatureList& features, FilterContext& cx ) StringExpression temp( _altitude->script().get() ); feature->eval( temp, &cx ); } + if (feature->getGeometry() == 0L) + continue; double minHAT = DBL_MAX; double maxHAT = -DBL_MAX; @@ -192,6 +194,8 @@ AltitudeFilter::pushAndClamp( FeatureList& features, FilterContext& cx ) StringExpression temp( _altitude->script().get() ); feature->eval( temp, &cx ); } + if (feature->getGeometry() == 0L) + continue; double maxTerrainZ = -DBL_MAX; double minTerrainZ = DBL_MAX;