mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
allow for maintaining default ctor for projection class, reverting part of r2105 and part of r2102 (would have caused compile problems in mod_tile) - see also #333, which this sets us up for
This commit is contained in:
parent
48a9edb01c
commit
5297d9bba0
@ -89,12 +89,12 @@ void export_projection ()
|
||||
{
|
||||
using namespace boost::python;
|
||||
|
||||
class_<projection>("Projection", "Represents a map projection.",init<std::string const&>(
|
||||
class_<projection>("Projection", "Represents a map projection.",init<optional<std::string const&> >(
|
||||
(arg("proj4_string")),
|
||||
"Constructs a new projection from its PROJ.4 string representation.\n"
|
||||
"\n"
|
||||
"The parameterless version of this constructor is equivalent to\n"
|
||||
" Projection('+proj=latlong +ellps=WGS84')\n"
|
||||
" Projection('+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs')\n"
|
||||
"\n"
|
||||
"The constructor will throw a RuntimeError in case the projection\n"
|
||||
"cannot be initialized.\n"
|
||||
|
||||
@ -52,7 +52,7 @@ class MAPNIK_DECL projection
|
||||
{
|
||||
friend class proj_transform;
|
||||
public:
|
||||
explicit projection(std::string const& params);
|
||||
explicit projection(std::string const& params = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs");
|
||||
projection(projection const& rhs);
|
||||
~projection();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user