testcase for #2170

This commit is contained in:
Oliver Tonnhofer 2014-03-06 10:25:57 +01:00 committed by Dane Springmeyer
parent 2c38670443
commit 5dedae4320

View file

@ -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'"));