Guest User

Untitled

a guest
Oct 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ...
  2. if (check_xyz(item->mx, item->my, req->z, &(maps[i]))) {
  3.  
  4. ######## START OF MY CODE #######
  5. try {
  6. maps[i].map = Map(256,256,maps[i].map.srs());
  7. mapnik::load_map(maps[i].map, maps[i].xmlfile);
  8. }
  9. catch (std::exception const& ex) {
  10. syslog(LOG_ERR, "An error occurred");
  11. maps[iMaxConfigs].ok = 0;
  12. break;
  13. } catch (...) {
  14. syslog(LOG_ERR, "An unknown error occurred ");
  15. maps[iMaxConfigs].ok = 0;
  16. break;
  17. }
  18. ######## END OF MY CODE ########
  19.  
  20. metaTile tiles(req->xmlname, req->options, item->mx, item->my, req->z);
  21. ...
Add Comment
Please, Sign In to add comment