MCPcopy Create free account
hub / github.com/OSGeo/PROJ / main

Function main

test/postinstall/cpp_app/cpp_app.cpp:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int main(int argc, char *argv[]) {
29 PJ_INFO info;
30 info = proj_info();
31 if (argc == 2 && argv[1][0] == '-') {
32 switch (argv[1][1]) {
33 case 't':
34 return (test_transform());
35 case 's':
36 std::cout << info.searchpath << std::endl;
37 return (0);
38 case 'v':
39 std::cout << info.major << '.' << info.minor << '.' << info.patch
40 << std::endl;
41 return (0);
42 }
43 }
44 std::cerr << "Use option -t, -s or -v" << std::endl;
45 return (1);
46}

Callers

nothing calls this directly

Calls 2

proj_infoFunction · 0.85
test_transformFunction · 0.70

Tested by

no test coverage detected