/usr/include/ossim/imaging/ossimGpkgWriterInterface.h is in libossim-dev 2.2.2-1.
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 | //----------------------------------------------------------------------------
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description: Interface for GeoPackage(gpkg) writers.
//
//----------------------------------------------------------------------------
// $Id$
#ifndef ossimGpkgWriterInterface_HEADER
#define ossimGpkgWriterInterface_HEADER 1
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimRefPtr.h>
class ossimImageData;
class ossimKeywordlist;
/**
* @class GeoPackage writer interface.
*
* This interface is for using the ossimGeopackageWriter in a connectionless
* manner. See ossim-gpkg-writer-test.cpp for example usage.
*/
class OSSIM_DLL ossimGpkgWriterInterface
{
public:
/**
* GP: I had to add this or windows would not link with the latest
* compiler. Also had to put in dot.cpp for debug mode(again windows).
* (drb)
*/
ossimGpkgWriterInterface();
/**
* @brief Opens file for writing, appending, merging without an input
* connection. I.e. opening, then calling writeTile directly.
*
* @param options. Keyword list containing all options.
*/
virtual bool openFile( const ossimKeywordlist& options ) = 0;
/**
* @brief Calls initial sqlite3_prepare_v2 statement. Must be called
* prior to calling writeTile.
* @return SQLITE_OK(0) on success, something other(non-zero) on failure.
*/
virtual ossim_int32 beginTileProcessing() = 0;
/**
* @brief Direct interface to writing a tile to database.
* @param tile to write.
* @param zoolLevel
* @param row
* @param col
* @return true on success, false on error.
*/
virtual bool writeTile( ossimRefPtr<ossimImageData>& tile,
ossim_int32 zoomLevel,
ossim_int64 row,
ossim_int64 col ) = 0;
virtual bool writeCodecTile( ossim_uint8* codecTile,
ossim_int32 codecTileSize,
ossim_int32 zoomLevel,
ossim_int64 row,
ossim_int64 col ) = 0;
/**
* @brief Calls sqlite3_finalize(pStmt) terminating tile processing.
*/
virtual void finalizeTileProcessing() = 0;
};
#endif /* End of "#ifndef ossimGpkgWriterInterface_HEADER" */
|