This file is indexed.

/usr/include/terralib/functions/TeDriverSPRING.h is in libterralib-dev 4.3.0+dfsg.2-11.

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
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/************************************************************************************
TerraLib - a library for developing GIS applications.
Copyright © 2001-2007 INPE and Tecgraf/PUC-Rio.

This code is part of the TerraLib library.
This library 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.1 of the License, or (at your option) any later version.

You should have received a copy of the GNU Lesser General Public
License along with this library.

The authors reassure the license terms regarding the warranties.
They specifically disclaim any warranties, including, but not limited to,
the implied warranties of merchantability and fitness for a particular purpose.
The library provided hereunder is on an "as is" basis, and the authors have no
obligation to provide maintenance, support, updates, enhancements, or modifications.
In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
indirect, special, incidental, or consequential damages arising out of the use
of this library and its documentation.
*************************************************************************************/
/*! \file TeSPRINGDriver.h
    \brief This file contains functions to deal with the SPRING GEO/TAB format
*/
#ifndef __TERRALIB_INTERNAL_SPRINGDriver_H
#define __TERRALIB_INTERNAL_SPRINGDriver_H

#include "TeTable.h"
#include "TeBox.h"
#include "TeDataTypes.h"
#include "TeGeometry.h" 

#include "TeFunctionsDefines.h"

#include <string>
using namespace std;

class TeLayer;
class TeSPRFile;
class TeAsciiFile;
class TeProjection;
class TeDatabase;
class TeTheme;
class TeQuerier;

/** @defgroup SPR SPRING GEO/TAB format
   @ingroup Formats
   Functions related to SPRING format
   @{
 */ 
/** Imports a geo data in SPRING geo/tab format to a TerraLib database
	\param geoFileName	GEO/TAB file name
	\param db			pointer to a TerraLib database
	\param layerName	name of the layer that will contain the data (optional)
	\return a pointer to created layer if the data was imported successfully and 0 otherwise
*/
TLFUNCTIONS_DLL TeLayer* TeImportGEO(const string& geoFileName, TeDatabase* db, const string& layerName="");

/** Imports a GEO/TAB data to a layer TerraLib
    \param layer			pointer to a layer
	\param geoFileName		GEO/TAB file name
	\param attrTableName	the name that the attribute table will be saved
	\param chunkSize the number of objects in memory before save them in the layer
*/
TLFUNCTIONS_DLL bool TeImportGEO(TeLayer* layer, const string& geoFileName, string attrTableName="", unsigned int chunkSize=60);

/** Reads the list of attributes  of GEO/TAB file
	\param geoFileName	DBF input file name
	\param attList		to return the DBF list of attributes
	\param labelName	to return the name of the column that is the link with geometries
	\return true if the list of attributes were was successfully read and false otherwise
*/
TLFUNCTIONS_DLL void TeReadGeoAttributeList(const string& geoFileName, TeAttributeList& attList, string& labelName);

/** Exports a layer in a TerraLib database to a file in ASCII SPRING format
    \param layer		pointer to the layer
    \param sprFileName	name of the output SPRING file
    \param tableName	name of the attribute table to be exported
    \param cat			Spring's category
	\param name			name of the column that has the object identifier or class indication
    \return TRUE if the data was successfully exported and FALSE otherwise
    \note Parameter 'name' is the Object name if exporting to categories Cadastral or Network .
   Is the name of the column that has the quote value if Numeric category or the name
   of the column that has the class information if category Thematic.
*/
TLFUNCTIONS_DLL bool TeExportSPR(TeLayer* layer, const string& sprFileName, const string& tableName, 
			 TeSpringModels cat, const string& name);

/** Exports a theme in a TerraLib database to a file in MID/MIF format
	\param theme			pointer to the theme
	\param cat			Spring's category
	\param name			name of the column that has the object identifier or class indication
	\param selOb			selection of the objects that should be exported
	\param baseName		name of the output MID/MIF file
   \return TRUE if the data was successfully exported and FALSE otherwise
*/
TLFUNCTIONS_DLL bool TeExportThemeToSPRING(TeTheme* theme, TeSpringModels cat, const string& name, TeSelectedObjects selOb = TeAll, const string& baseName="");


/** Exports a querier to a SCII Spring file
	\param querier		pointer to a valid querier
	\param baseName		name of the output SPRING file
    \param cat			Spring's category
	\param name			name of the column that has the object identifier or class indication
	\param proj			projection of the data
	\param objname		name of object category
	\return TRUE if the data was successfully exported and FALSE otherwise
*/
TLFUNCTIONS_DLL bool TeExportQuerierToSPRING(TeQuerier* querier, const std::string& base, TeSpringModels cat, const string& name, TeProjection* proj=0);
/** @} */ // End of subgroup SPRING format

/** \example importGeoTab.cpp
 Shows how to import geographical data in SPRING GEO/TAB format
 */

#endif