27 #include "../../dataaccess/datasource/DataSourceInfo.h"
28 #include "../../dataaccess/datasource/DataSourceManager.h"
29 #include "../../dataaccess/utils/Utils.h"
30 #include "../../geometry/Geometry.h"
31 #include "../../geometry/GeometryCollection.h"
32 #include "../../geometry/GeometryProperty.h"
33 #include "../../memory/DataSet.h"
44 #include <boost/algorithm/string.hpp>
48 std::list<te::map::AbstractLayerPtr> filteredList;
50 for(std::list<te::map::AbstractLayerPtr>::iterator it = layers.begin(); it != layers.end(); ++it)
52 std::string layName = (*it)->getTitle().substr(0, text.size());
54 if(boost::to_upper_copy(layName) == boost::to_upper_copy(text))
55 filteredList.push_back(*it);
Utility functions for the data access module.
std::list< te::map::AbstractLayerPtr > GetFilteredLayers(std::string text, std::list< te::map::AbstractLayerPtr > layers)
Get a list of AbstractLayer filtered by the name;.