/usr/include/osgEarthUtil/TileIndex is in libosgearth-dev 2.5.0+dfsg-2+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef OSGEARTHUTIL_TILEINDEX_H
#define OSGEARTHUTIL_TILEINDEX_H 1
#include <osgEarthUtil/Common>
#include <osg/Referenced>
#include <osg/ref_ptr>
#include <osgEarthFeatures/FeatureSource>
#include <string>
#include <vector>
namespace osgEarth { namespace Util
{
/**
* Manages a FeatureSource that is an index of geospatial data files
*/
class OSGEARTHUTIL_EXPORT TileIndex : public osg::Referenced
{
public:
static TileIndex* load( const std::string& filename );
static TileIndex* create( const std::string& filename, const osgEarth::SpatialReference* srs);
/**
* Gets files within the given extent.
*/
void getFiles(const osgEarth::GeoExtent& extent, std::vector< std::string >& files);
/**
* Adds the given filename to the index
*/
bool add( const std::string& filename, const GeoExtent& extent );
/**
* Gets the filename of the shapefile used for this index.
*/
const std::string& getFilename() const { return _filename;}
protected:
TileIndex();
~TileIndex();
osg::ref_ptr< osgEarth::Features::FeatureSource > _features;
std::string _filename;
};
} } // namespace osgEarth::Util
#endif //OSGEARTHUTIL_TILEINDEX_H
|