apply mapnik/c++ formatting
This commit is contained in:
parent
0a4214fe36
commit
be5085d2e9
1 changed files with 117 additions and 114 deletions
|
@ -109,10 +109,13 @@ void add_xml_files(bfs::path dir, std::vector<bfs::path> &xml_files) {
|
|||
}
|
||||
|
||||
void load_map(mapnik::Map &m, bfs::path const &path) {
|
||||
try {
|
||||
mapnik::load_map(m, path.native());
|
||||
|
||||
} catch (std::exception const &ex) {
|
||||
try
|
||||
{
|
||||
mapnik::load_map(m, path.native());
|
||||
}
|
||||
catch (std::exception const &ex)
|
||||
{
|
||||
// errors which come from the datasource not being loaded or
|
||||
// database not being set up aren't really useful - they're
|
||||
// more likely to be spurious than meaningful, so ignore them.
|
||||
|
|
Loading…
Reference in a new issue