Try to be clearer in the warning message about projections

This commit is contained in:
Eric Fischer
2017-04-18 13:24:16 -07:00
parent 8b5168cb2b
commit d19680e392
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -567,7 +567,8 @@ void check_crs(json_object *j, const char *reading) {
json_object *name = json_hash_get(properties, "name");
if (name->type == JSON_STRING) {
if (strcmp(name->string, projection->alias) != 0) {
fprintf(stderr, "%s: Warning: GeoJSON specified projection \"%s\", not \"%s\".\n", reading, name->string, projection->alias);
fprintf(stderr, "%s: Warning: GeoJSON specified projection \"%s\", not the expected \"%s\".\n", reading, name->string, projection->alias);
fprintf(stderr, "%s: If \"%s\" is not the expected projection, use -s to specify the right one.\n", reading, projection->alias);
}
}
}