diff --git a/geojson.js b/geojson.js index 8550a87..6afffb7 100644 --- a/geojson.js +++ b/geojson.js @@ -270,7 +270,7 @@ throw new InvalidGeometryError(item, params); } - return geom; + return geom.coordinates? geom : null; } // Returns the function to be used to