From 976101055003309609321f3090d9244c929e3a2e Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 11 Aug 2015 16:55:54 -0700 Subject: [PATCH] Downgrade no-features error to a warning --- geojson.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/geojson.c b/geojson.c index d8739662..575b3f07 100644 --- a/geojson.c +++ b/geojson.c @@ -689,9 +689,8 @@ int read_json(int argc, char **argv, char *fname, const char *layername, int max if (j->type == JSON_HASH) { found_hashes++; - if (0 && found_hashes == 50 && found_features == 0) { - fprintf(stderr, "%s:%d: Not finding any GeoJSON features in input. Is your file just bare geometries?\n", reading, jp->line); - break; + if (found_hashes == 50 && found_features == 0) { + fprintf(stderr, "%s:%d: Not finding any GeoJSON features in input after 50 objects. Is your file just bare geometries?\n", reading, jp->line); } }