mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Silence the projection warning if you asked for --quiet
This commit is contained in:
@@ -219,6 +219,7 @@ void check_crs(json_object *j, const char *reading) {
|
|||||||
json_object *name = json_hash_get(properties, "name");
|
json_object *name = json_hash_get(properties, "name");
|
||||||
if (name->type == JSON_STRING) {
|
if (name->type == JSON_STRING) {
|
||||||
if (strcmp(name->string, projection->alias) != 0) {
|
if (strcmp(name->string, projection->alias) != 0) {
|
||||||
|
if (!quiet) {
|
||||||
fprintf(stderr, "%s: Warning: GeoJSON specified projection \"%s\", not the expected \"%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);
|
fprintf(stderr, "%s: If \"%s\" is not the expected projection, use -s to specify the right one.\n", reading, projection->alias);
|
||||||
}
|
}
|
||||||
@@ -226,6 +227,7 @@ void check_crs(json_object *j, const char *reading) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void parse_json(struct serialization_state *sst, json_pull *jp, int layer, std::string layername) {
|
void parse_json(struct serialization_state *sst, json_pull *jp, int layer, std::string layername) {
|
||||||
long long found_hashes = 0;
|
long long found_hashes = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user