Created
October 28, 2015 15:56
-
-
Save springmeyer/a19851a44ed232c3ac56 to your computer and use it in GitHub Desktop.
Simple C++ test of compiling and linking against Mapnik
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mapnik/map.hpp> | |
#include <iostream> | |
/* | |
clang++ test-run.cpp -o test-run `mapnik-config --all-flags` | |
./test-run | |
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs | |
*/ | |
int main() { | |
mapnik::Map m(256,256); | |
std::clog << m.srs() << "\n"; | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment