1
/*****************************************************************************
3
* This file is part of Mapnik (c++ mapping toolkit)
5
* Copyright (C) 2007 Artem Pavlenko
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
*****************************************************************************/
24
#ifndef SQLITE_FEATURESET_HPP
25
#define SQLITE_FEATURESET_HPP
28
#include <mapnik/datasource.hpp>
29
#include <mapnik/unicode.hpp>
30
#include <mapnik/wkb.hpp>
33
#include <boost/scoped_ptr.hpp>
34
#include <boost/shared_ptr.hpp>
37
#include "sqlite_types.hpp"
40
class sqlite_featureset : public mapnik::Featureset
43
sqlite_featureset(boost::shared_ptr<sqlite_resultset> rs,
44
std::string const& encoding,
45
mapnik::wkbFormat format,
46
bool multiple_geometries);
47
virtual ~sqlite_featureset();
48
mapnik::feature_ptr next();
50
boost::shared_ptr<sqlite_resultset> rs_;
51
boost::scoped_ptr<mapnik::transcoder> tr_;
52
mapnik::wkbFormat format_;
53
bool multiple_geometries_;
56
#endif // SQLITE_FEATURESET_HPP