testcase for #2170
This commit is contained in:
parent
2c38670443
commit
5dedae4320
1 changed files with 12 additions and 1 deletions
|
@ -31,8 +31,8 @@ int main(int argc, char** argv)
|
|||
}
|
||||
bool quiet = std::find(args.begin(), args.end(), "-q")!=args.end();
|
||||
|
||||
BOOST_TEST(set_working_dir(args));
|
||||
try {
|
||||
BOOST_TEST(set_working_dir(args));
|
||||
mapnik::projection srs("foo");
|
||||
// to avoid unused variable warning
|
||||
srs.params();
|
||||
|
@ -41,6 +41,17 @@ int main(int argc, char** argv)
|
|||
BOOST_TEST(true);
|
||||
}
|
||||
|
||||
// https://github.com/mapnik/mapnik/issues/2170
|
||||
try {
|
||||
BOOST_TEST(set_working_dir(args));
|
||||
mapnik::projection srs("+proj=longlat foo",true);
|
||||
BOOST_TEST(srs.is_geographic());
|
||||
srs.init_proj4();
|
||||
BOOST_TEST(false);
|
||||
} catch (...) {
|
||||
BOOST_TEST(true);
|
||||
}
|
||||
|
||||
mapnik::Map map(256,256);
|
||||
mapnik::rule r;
|
||||
r.set_filter(mapnik::parse_expression("[foo]='bar'"));
|
||||
|
|
Loading…
Reference in a new issue