Utils.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/wfs/Utils.cpp
22 
23  \brief Utility functions for WFS driver.
24 */
25 
26 // TerraLib
27 #include "Utils.h"
28 
29 #include "../dataaccess/datasource/DataSourceInfoManager.h"
30 #include "../maptools/AbstractLayer.h"
31 
32 
33 // Boost
34 #include <boost/lexical_cast.hpp>
35 
36 // STL
37 #include <cassert>
38 
40 {
41  return true;
42  //te::da::DataSourceInfoPtr info = te::da::DataSourceInfoManager::getInstance().get(layer.getDataSourceId());
43 
44  //return (info.get() != 0 && info->getType() == "WFS");
45 }
46 
This is the base class for layers.
Definition: AbstractLayer.h:76
Utility functions for WFS driver.
TEWFSEXPORT bool IsWFSLayer(const te::map::AbstractLayer &layer)
Definition: Utils.cpp:39