Skip to content
Browse files

add compile time warning if building against proj < 4.8

  • Loading branch information...
1 parent f5da52b commit 1941a700a46c984bb75fadd687e1a430d97215da @springmeyer springmeyer committed Apr 11, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/projection.cpp
View
9 src/projection.cpp
@@ -33,19 +33,20 @@
namespace mapnik {
#if defined(MAPNIK_THREADSAFE) && PJ_VERSION < 480
+#warning mapnik is building against < proj 4.8, reprojection will be faster if you use >= 4.8
boost::mutex projection::mutex_;
#endif
projection::projection(std::string const& params)
: params_(params)
{
- init(); //
+ init();
}
projection::projection(projection const& rhs)
: params_(rhs.params_)
{
- init(); //
+ init();
}
projection& projection::operator=(projection const& rhs)
@@ -158,9 +159,9 @@ std::string projection::expanded() const
return std::string("");
}
-void projection::swap (projection& rhs)
+void projection::swap(projection& rhs)
{
std::swap(params_,rhs.params_);
- init ();
+ init();
}
}

0 comments on commit 1941a70

Please sign in to comment.
Something went wrong with that request. Please try again.