fix linking of occi plugin
This commit is contained in:
parent
dc0cfef4bb
commit
8cf7172539
1 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ occi_datasource::occi_datasource(parameters const& params)
|
||||||
desc_(occi_datasource::name(), *params.get<std::string>("encoding", "utf-8")),
|
desc_(occi_datasource::name(), *params.get<std::string>("encoding", "utf-8")),
|
||||||
use_wkb_(*params.get<mapnik::boolean_type>("use_wkb", false)),
|
use_wkb_(*params.get<mapnik::boolean_type>("use_wkb", false)),
|
||||||
row_limit_(*params.get<mapnik::value_integer>("row_limit", 0)),
|
row_limit_(*params.get<mapnik::value_integer>("row_limit", 0)),
|
||||||
row_prefetch_(*params.get<int>("row_prefetch", 100)),
|
row_prefetch_(*params.get<mapnik::value_integer>("row_prefetch", 100)),
|
||||||
pool_(0),
|
pool_(0),
|
||||||
conn_(0)
|
conn_(0)
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ occi_datasource::occi_datasource(parameters const& params)
|
||||||
boost::optional<std::string> ext = params.get<std::string>("extent");
|
boost::optional<std::string> ext = params.get<std::string>("extent");
|
||||||
if (ext) extent_initialized_ = extent_.from_string(*ext);
|
if (ext) extent_initialized_ = extent_.from_string(*ext);
|
||||||
|
|
||||||
boost::optional<int> srid = params.get<int>("srid");
|
boost::optional<mapnik::value_integer> srid = params.get<mapnik::value_integer>("srid");
|
||||||
if (srid)
|
if (srid)
|
||||||
{
|
{
|
||||||
srid_ = *srid;
|
srid_ = *srid;
|
||||||
|
@ -123,8 +123,8 @@ occi_datasource::occi_datasource(parameters const& params)
|
||||||
*params.get<std::string>("user"),
|
*params.get<std::string>("user"),
|
||||||
*params.get<std::string>("password"),
|
*params.get<std::string>("password"),
|
||||||
*params.get<std::string>("host"),
|
*params.get<std::string>("host"),
|
||||||
*params.get<int>("max_size", 5),
|
*params.get<mapnik::value_integer>("max_size", 5),
|
||||||
*params.get<int>("initial_size", 1),
|
*params.get<mapnik::value_integer>("initial_size", 1),
|
||||||
1);
|
1);
|
||||||
}
|
}
|
||||||
catch (SQLException& ex)
|
catch (SQLException& ex)
|
||||||
|
|
Loading…
Add table
Reference in a new issue