remove unused iostream includes and unnecessary usage of ostringstream - refs #1055
This commit is contained in:
parent
f3c23c28c3
commit
c0021d0760
36 changed files with 43 additions and 112 deletions
|
@ -32,7 +32,6 @@
|
||||||
#include <boost/concept_check.hpp>
|
#include <boost/concept_check.hpp>
|
||||||
// stl
|
// stl
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,13 @@
|
||||||
#ifndef MAPNIK_CONFIG_ERROR_HPP
|
#ifndef MAPNIK_CONFIG_ERROR_HPP
|
||||||
#define MAPNIK_CONFIG_ERROR_HPP
|
#define MAPNIK_CONFIG_ERROR_HPP
|
||||||
|
|
||||||
#include <iostream>
|
#include <exception>
|
||||||
#include <sstream>
|
#include <string>
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
|
||||||
class xml_node;
|
class xml_node;
|
||||||
|
|
||||||
class config_error : public std::exception
|
class config_error : public std::exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
|
@ -33,9 +33,6 @@
|
||||||
#include <boost/variant/apply_visitor.hpp>
|
#include <boost/variant/apply_visitor.hpp>
|
||||||
#include <boost/variant/variant.hpp>
|
#include <boost/variant/variant.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik { namespace json {
|
namespace mapnik { namespace json {
|
||||||
|
|
||||||
namespace qi = boost::spirit::qi;
|
namespace qi = boost::spirit::qi;
|
||||||
|
|
|
@ -34,9 +34,6 @@
|
||||||
#include <boost/variant/apply_visitor.hpp>
|
#include <boost/variant/apply_visitor.hpp>
|
||||||
#include <boost/variant/variant.hpp>
|
#include <boost/variant/variant.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik { namespace json {
|
namespace mapnik { namespace json {
|
||||||
|
|
||||||
namespace qi = boost::spirit::qi;
|
namespace qi = boost::spirit::qi;
|
||||||
|
|
|
@ -33,9 +33,6 @@
|
||||||
#include <boost/variant/apply_visitor.hpp>
|
#include <boost/variant/apply_visitor.hpp>
|
||||||
#include <boost/variant/variant.hpp>
|
#include <boost/variant/variant.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik { namespace json {
|
namespace mapnik { namespace json {
|
||||||
|
|
||||||
namespace qi = boost::spirit::qi;
|
namespace qi = boost::spirit::qi;
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
#ifndef MAPNIK_MEMORY_HPP
|
#ifndef MAPNIK_MEMORY_HPP
|
||||||
#define MAPNIK_MEMORY_HPP
|
#define MAPNIK_MEMORY_HPP
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
// stl
|
// stl
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <iostream>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
|
|
@ -40,9 +40,6 @@
|
||||||
#include <boost/fusion/include/struct.hpp>
|
#include <boost/fusion/include/struct.hpp>
|
||||||
#include <boost/fusion/include/boost_tuple.hpp>
|
#include <boost/fusion/include/boost_tuple.hpp>
|
||||||
|
|
||||||
// std
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* mapnik::svg::path_output_attributes is adapted as a fusion sequence
|
* mapnik::svg::path_output_attributes is adapted as a fusion sequence
|
||||||
* in order to be used directly by the svg_path_attributes_grammar (below).
|
* in order to be used directly by the svg_path_attributes_grammar (below).
|
||||||
|
|
|
@ -33,8 +33,6 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <sstream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#ifndef MAPNIK_VALUE_ERROR_HPP
|
#ifndef MAPNIK_VALUE_ERROR_HPP
|
||||||
#define MAPNIK_VALUE_ERROR_HPP
|
#define MAPNIK_VALUE_ERROR_HPP
|
||||||
|
|
||||||
#include <iostream>
|
#include <exception>
|
||||||
#include <sstream>
|
#include <string>
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
|
||||||
|
|
|
@ -159,9 +159,8 @@ void csv_datasource::parse_csv(T & stream,
|
||||||
if (file_mb > filesize_max_)
|
if (file_mb > filesize_max_)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
s << "CSV Plugin: csv file is greater than " << filesize_max_ << "MB "
|
s << "CSV Plugin: csv file is greater than ";
|
||||||
<< " - you should use a more efficient data format like sqlite, postgis or a shapefile "
|
s << filesize_max_ << "MB - you should use a more efficient data format like sqlite, postgis or a shapefile to render this data (set 'filesize_max=0' to disable this restriction if you have lots of memory)";
|
||||||
<< " to render this data (set 'filesize_max=0' to disable this restriction if you have lots of memory)";
|
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s.str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -258,9 +257,9 @@ void csv_datasource::parse_csv(T & stream,
|
||||||
}
|
}
|
||||||
catch(std::exception const& ex)
|
catch(std::exception const& ex)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("CSV Plugin: ");
|
||||||
s << "CSV Plugin: " << ex.what();
|
s += ex.what();
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef boost::tokenizer< escape_type > Tokenizer;
|
typedef boost::tokenizer< escape_type > Tokenizer;
|
||||||
|
@ -345,10 +344,10 @@ void csv_datasource::parse_csv(T & stream,
|
||||||
if (strict_)
|
if (strict_)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
s << "CSV Plugin: expected a column header at line "
|
s << "CSV Plugin: expected a column header at line ";
|
||||||
<< line_number << ", column " << idx
|
s << line_number << ", column " << idx;
|
||||||
<< " - ensure this row contains valid header fields: '"
|
s << " - ensure this row contains valid header fields: '";
|
||||||
<< csv_line << "'\n";
|
s << csv_line << "'\n";
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s.str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -398,18 +397,16 @@ void csv_datasource::parse_csv(T & stream,
|
||||||
}
|
}
|
||||||
catch(const std::exception & ex)
|
catch(const std::exception & ex)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("CSV Plugin: error parsing headers: ");
|
||||||
s << "CSV Plugin: error parsing headers: " << ex.what();
|
s += ex.what();
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has_wkt_field && !has_json_field && (!has_lon_field || !has_lat_field) )
|
if (!has_wkt_field && !has_json_field && (!has_lon_field || !has_lat_field) )
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
throw mapnik::datasource_exception("CSV Plugin: could not detect column headers with the name of wkt, geojson, x/y, or latitude/longitude - this is required for reading geometry data");
|
||||||
s << "CSV Plugin: could not detect column headers with the name of wkt, geojson, x/y, or latitude/longitude - this is required for reading geometry data";
|
|
||||||
throw mapnik::datasource_exception(s.str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int feature_count(0);
|
int feature_count(0);
|
||||||
|
@ -948,10 +945,8 @@ mapnik::featureset_ptr csv_datasource::features(mapnik::query const& q) const
|
||||||
if (! found_name)
|
if (! found_name)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
|
|
||||||
s << "CSV Plugin: no attribute '" << *pos << "'. Valid attributes are: "
|
s << "CSV Plugin: no attribute '" << *pos << "'. Valid attributes are: "
|
||||||
<< boost::algorithm::join(headers_, ",") << ".";
|
<< boost::algorithm::join(headers_, ",") << ".";
|
||||||
|
|
||||||
throw mapnik::datasource_exception(s.str());
|
throw mapnik::datasource_exception(s.str());
|
||||||
}
|
}
|
||||||
++pos;
|
++pos;
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include "geojson_featureset.hpp"
|
#include "geojson_featureset.hpp"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
// boost
|
// boost
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "geos_featureset.hpp"
|
#include "geos_featureset.hpp"
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
#include <sstream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
|
|
@ -20,10 +20,6 @@
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/global.hpp>
|
#include <mapnik/global.hpp>
|
||||||
#include <mapnik/debug.hpp>
|
#include <mapnik/debug.hpp>
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
#include <boost/make_shared.hpp>
|
#include <boost/make_shared.hpp>
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
using mapnik::datasource;
|
using mapnik::datasource;
|
||||||
|
@ -174,11 +174,8 @@ void ogr_datasource::bind() const
|
||||||
const unsigned num_layers = dataset_->GetLayerCount();
|
const unsigned num_layers = dataset_->GetLayerCount();
|
||||||
if (*layer_by_index >= num_layers)
|
if (*layer_by_index >= num_layers)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s("OGR Plugin: only ");
|
||||||
s << "OGR Plugin: only ";
|
s << num_layers << " layer(s) exist, cannot find layer by index '" << *layer_by_index << "'";
|
||||||
s << num_layers;
|
|
||||||
s << " layer(s) exist, cannot find layer by index '" << *layer_by_index << "'";
|
|
||||||
|
|
||||||
throw datasource_exception(s.str());
|
throw datasource_exception(s.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,9 +193,7 @@ void ogr_datasource::bind() const
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("OGR Plugin: missing <layer> or <layer_by_index> or <layer_by_sql> parameter, available layers are: ");
|
||||||
s << "OGR Plugin: missing <layer> or <layer_by_index> or <layer_by_sql> "
|
|
||||||
<< "parameter, available layers are: ";
|
|
||||||
|
|
||||||
unsigned num_layers = dataset_->GetLayerCount();
|
unsigned num_layers = dataset_->GetLayerCount();
|
||||||
bool layer_found = false;
|
bool layer_found = false;
|
||||||
|
@ -216,14 +211,14 @@ void ogr_datasource::bind() const
|
||||||
|
|
||||||
if (! layer_found)
|
if (! layer_found)
|
||||||
{
|
{
|
||||||
s << "None (no layers were found in dataset)";
|
s += "None (no layers were found in dataset)";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
s << boost::algorithm::join(layer_names,", ");
|
s += boost::algorithm::join(layer_names,", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
throw datasource_exception(s.str());
|
throw datasource_exception(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! layer_.is_valid())
|
if (! layer_.is_valid())
|
||||||
|
@ -465,10 +460,10 @@ void validate_attribute_names(query const& q, std::vector<attribute_descriptor>
|
||||||
|
|
||||||
if (! found_name)
|
if (! found_name)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::ostringstream s("OGR Plugin: no attribute '");
|
||||||
|
s << *pos << "'. Valid attributes are: ";
|
||||||
std::vector<attribute_descriptor>::const_iterator itr = names.begin();
|
std::vector<attribute_descriptor>::const_iterator itr = names.begin();
|
||||||
std::vector<attribute_descriptor>::const_iterator end = names.end();
|
std::vector<attribute_descriptor>::const_iterator end = names.end();
|
||||||
s << "OGR Plugin: no attribute '" << *pos << "'. Valid attributes are: ";
|
|
||||||
for ( ;itr!=end;++itr)
|
for ( ;itr!=end;++itr)
|
||||||
{
|
{
|
||||||
s << itr->get_name() << std::endl;
|
s << itr->get_name() << std::endl;
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
#include <mapnik/debug.hpp>
|
#include <mapnik/debug.hpp>
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
// ogr
|
// ogr
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
#include "osm.h"
|
#include "osm.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <fstream>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
@ -91,9 +88,9 @@ void osm_datasource::bind() const
|
||||||
// if we supplied a filename, load from file
|
// if we supplied a filename, load from file
|
||||||
if ((osm_data_ = dataset_deliverer::load_from_file(osm_filename, parser)) == NULL)
|
if ((osm_data_ = dataset_deliverer::load_from_file(osm_filename, parser)) == NULL)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("OSM Plugin: Error loading from file '");
|
||||||
s << "OSM Plugin: Error loading from file '" << osm_filename << "'";
|
s += osm_filename + "'";
|
||||||
throw datasource_exception(s.str());
|
throw datasource_exception(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
*
|
*
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/geometry.hpp>
|
#include <mapnik/geometry.hpp>
|
||||||
#include <mapnik/feature_factory.hpp>
|
#include <mapnik/feature_factory.hpp>
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
using std::endl;
|
|
||||||
|
|
||||||
osm_item* osmparser::cur_item=NULL;
|
osm_item* osmparser::cur_item=NULL;
|
||||||
long osmparser::curID=0;
|
long osmparser::curID=0;
|
||||||
bool osmparser::in_node=false, osmparser::in_way=false;
|
bool osmparser::in_node=false, osmparser::in_way=false;
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include <libxml/xmlreader.h>
|
#include <libxml/xmlreader.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "osm.h"
|
#include "osm.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include <mapnik/timer.hpp>
|
#include <mapnik/timer.hpp>
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|
|
@ -23,14 +23,11 @@
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/datasource.hpp>
|
#include <mapnik/datasource.hpp>
|
||||||
#include <mapnik/params.hpp>
|
#include <mapnik/params.hpp>
|
||||||
|
#include <mapnik/util/conversions.hpp>
|
||||||
#include "shape_utils.hpp"
|
#include "shape_utils.hpp"
|
||||||
|
|
||||||
// boost
|
// boost
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
// stl
|
|
||||||
#include <sstream>
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
|
|
||||||
void setup_attributes(mapnik::context_ptr const& ctx,
|
void setup_attributes(mapnik::context_ptr const& ctx,
|
||||||
std::set<std::string> const& names,
|
std::set<std::string> const& names,
|
||||||
|
@ -56,19 +53,17 @@ void setup_attributes(mapnik::context_ptr const& ctx,
|
||||||
|
|
||||||
if (! found_name)
|
if (! found_name)
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("no attribute '");
|
||||||
|
std::string pos_string;
|
||||||
s << "no attribute '" << *pos << "' in '"
|
s += *pos + "' in '" + shape_name + "'. Valid attributes are: ";
|
||||||
<< shape_name << "'. Valid attributes are: ";
|
|
||||||
|
|
||||||
std::vector<std::string> list;
|
std::vector<std::string> list;
|
||||||
for (int i = 0; i < shape.dbf().num_fields(); ++i)
|
for (int i = 0; i < shape.dbf().num_fields(); ++i)
|
||||||
{
|
{
|
||||||
list.push_back(shape.dbf().descriptor(i).name_);
|
list.push_back(shape.dbf().descriptor(i).name_);
|
||||||
}
|
}
|
||||||
s << boost::algorithm::join(list, ",") << ".";
|
s += boost::algorithm::join(list, ",") + ".";
|
||||||
|
|
||||||
throw mapnik::datasource_exception("Shape Plugin: " + s.str());
|
throw mapnik::datasource_exception("Shape Plugin: " + s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace mapnik {
|
namespace mapnik {
|
||||||
|
@ -74,17 +72,17 @@ datasource_ptr datasource_cache::create(const parameters& params, bool bind)
|
||||||
std::map<std::string,boost::shared_ptr<PluginInfo> >::iterator itr=plugins_.find(*type);
|
std::map<std::string,boost::shared_ptr<PluginInfo> >::iterator itr=plugins_.find(*type);
|
||||||
if ( itr == plugins_.end() )
|
if ( itr == plugins_.end() )
|
||||||
{
|
{
|
||||||
std::ostringstream s;
|
std::string s("Could not create datasource for type: '");
|
||||||
s << "Could not create datasource for type: '" << *type << "'";
|
s += *type + "'";
|
||||||
if (plugin_directories_.empty())
|
if (plugin_directories_.empty())
|
||||||
{
|
{
|
||||||
s << " (no datasource plugin directories have been successfully registered)";
|
s + " (no datasource plugin directories have been successfully registered)";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
s << " (searched for datasource plugins in '" << plugin_directories() << "')";
|
s + " (searched for datasource plugins in '" + plugin_directories() + "')";
|
||||||
}
|
}
|
||||||
throw config_error(s.str());
|
throw config_error(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! itr->second->handle())
|
if ( ! itr->second->handle())
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
//stl
|
//stl
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#include <mapnik/gradient.hpp>
|
#include <mapnik/gradient.hpp>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,9 +39,6 @@
|
||||||
// boost
|
// boost
|
||||||
#include <boost/scoped_array.hpp>
|
#include <boost/scoped_array.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
image_32::image_32(int width,int height)
|
image_32::image_32(int width,int height)
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
|
|
||||||
// stl
|
// stl
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
// boost
|
// boost
|
||||||
#include <boost/scoped_ptr.hpp>
|
#include <boost/scoped_ptr.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace mapnik
|
namespace mapnik
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/algorithm/string/predicate.hpp>
|
#include <boost/algorithm/string/predicate.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
|
|
||||||
// stl
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#include <tiffio.h>
|
#include <tiffio.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue