Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

warn if a Datasource template is not found

  • Loading branch information...
commit 0cafbc946065f76205edb4275bd23a062b62219a 1 parent ccda92f
@springmeyer springmeyer authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/load_map.cpp
View
7 src/load_map.cpp
@@ -670,7 +670,14 @@ void map_parser::parse_layer(Map & map, xml_node const& node)
{
std::map<std::string,parameters>::const_iterator base_itr = datasource_templates_.find(*base);
if (base_itr!=datasource_templates_.end())
+ {
params = base_itr->second;
+ }
+ else
+ {
+ MAPNIK_LOG_ERROR(datasource) << "Datasource template '" << *base
+ << "' not found for layer '" << name << "'";
+ }
}
xml_node::const_iterator paramIter = child->begin();
Please sign in to comment.
Something went wrong with that request. Please try again.