Return failure on invalid bounding box when --validate-features
option is used. (ref #3611)
This commit is contained in:
parent
8cc7060ef1
commit
d2d62bc95c
1 changed files with 5 additions and 0 deletions
|
@ -137,6 +137,11 @@ std::pair<bool,typename T::value_type::first_type> process_geojson_file(T & boxe
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (validate_features)
|
||||||
|
{
|
||||||
|
if (verbose) std::clog << "Invalid bbox encountered " << item.first << std::endl;
|
||||||
|
return std::make_pair(false, extent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return std::make_pair(true, extent);
|
return std::make_pair(true, extent);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue