Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created October 28, 2015 15:56
Show Gist options
  • Save springmeyer/a19851a44ed232c3ac56 to your computer and use it in GitHub Desktop.
Save springmeyer/a19851a44ed232c3ac56 to your computer and use it in GitHub Desktop.
Simple C++ test of compiling and linking against Mapnik
#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