Base for target file. More...
#include <spatmod/imagetargetfile.h>

Classes | |
| class | TILEPARMS |
| Parameters for control of output to separate file for each tile. More... | |
Public Types | |
| enum | GEOFORMATS { GEOFORMAT_None = 0x0000, GEOFORMAT_ArcWorld = 0x0001, GEOFORMAT_KML = 0x0002, GEOFORMAT_AUX = 0x0004, GEOFORMAT_ALL = 0x00FF, GEOFORMAT_ForceKML = 0x8000 } |
Public Member Functions | |
| TARGET_FILE (STAGE *pInputStage, GEOFORMATS GeoFormats=GEOFORMAT_None) | |
| TARGET_FILE (STAGE *pInputStage, const FILEPATH &filepath, GEOFORMATS GeoFormats=GEOFORMAT_None) | |
| virtual | ~TARGET_FILE () |
| void * | DetachBuffer () |
| const void * | GetBuffer () const |
| INT64 | GetBufferSize () const |
| const FILEPATH & | GetFilePath () const |
| GEOFORMATS | GetGeoFormats () const |
| bool | IsOneTilePerFile () const |
| bool | QueryGeoFormat (GEOFORMATS GeoFormat, MISTRING &message) const |
| void | SetTileParms (const TILEPARMS &TileParms) |
Protected Member Functions | |
| ERRVALUE | WriteGeoFormats () |
Private Member Functions | |
| virtual void * | v_DetachBuffer () |
| virtual ERRVALUE | v_FillTileRows (INT32 NumColumns, INT32 NumRows)=0 |
| virtual const void * | v_GetBuffer () const |
| virtual INT64 | v_GetBufferSize () const |
| ERRVALUE | v_PushSubSection (const SECTION &SubSection, const BUFFER &buffer) |
| virtual ERRVALUE | v_TileBegin (const FILEPATH &FilePath, const LRECT2D &Extents)=0 |
| virtual ERRVALUE | v_TileEnd ()=0 |
| virtual ERRVALUE | v_WriteSubSection (const SECTION &SubSection, const BUFFER &buffer)=0 |
Base for target file.
| SPATMOD::IMAGE::TARGET_FILE::TARGET_FILE | ( | STAGE * | pInputStage, | |
| const FILEPATH & | filepath, | |||
| GEOFORMATS | GeoFormats = GEOFORMAT_None | |||
| ) |
Construct with specified input stage and path to target file.
Target does not take ownership of input stage.
| pInputStage | Stage in pipeline to obtain image data from | |
| filepath | Path to target file | |
| GeoFormats | Georeference formats |
| SPATMOD::IMAGE::TARGET_FILE::TARGET_FILE | ( | STAGE * | pInputStage, | |
| GEOFORMATS | GeoFormats = GEOFORMAT_None | |||
| ) |
Construct with specified input stage.
Target does not take ownership of input stage.
| pInputStage | Stage in pipeline to obtain image data from | |
| GeoFormats | Georeference formats |
| virtual SPATMOD::IMAGE::TARGET_FILE::~TARGET_FILE | ( | ) | [virtual] |
Destructor.
| void* SPATMOD::IMAGE::TARGET_FILE::DetachBuffer | ( | ) | [inline] |
Detach memory buffer.
Caller is responsible for freeing buffer.
| const void* SPATMOD::IMAGE::TARGET_FILE::GetBuffer | ( | ) | const [inline] |
Get pointer to memory buffer.
| INT64 SPATMOD::IMAGE::TARGET_FILE::GetBufferSize | ( | ) | const [inline] |
Get memory buffer size.
| const FILEPATH& SPATMOD::IMAGE::TARGET_FILE::GetFilePath | ( | ) | const [inline] |
Get path to output file.
| GEOFORMATS SPATMOD::IMAGE::TARGET_FILE::GetGeoFormats | ( | ) | const [inline] |
Get preferred georeference format.
| bool SPATMOD::IMAGE::TARGET_FILE::IsOneTilePerFile | ( | ) | const [inline] |
Determine if is to output one tile per file.
| bool SPATMOD::IMAGE::TARGET_FILE::QueryGeoFormat | ( | GEOFORMATS | GeoFormat, | |
| MISTRING & | message | |||
| ) | const |
Determine if specified georeference format can be written.
| GeoFormat | Single GEOFORMAT value to check | |
| message | Message string returned containing limitation reason not supported |
| void SPATMOD::IMAGE::TARGET_FILE::SetTileParms | ( | const TILEPARMS & | TileParms | ) |
Set tiling parameters for output of one "file" per tile.
If used, must be called before Initialize().
| virtual void* SPATMOD::IMAGE::TARGET_FILE::v_DetachBuffer | ( | ) | [private, virtual] |
Detach memory buffer.
Caller is responsible for freeing buffer.
| virtual ERRVALUE SPATMOD::IMAGE::TARGET_FILE::v_FillTileRows | ( | INT32 | NumColumns, | |
| INT32 | NumRows | |||
| ) | [private, pure virtual] |
Derived class should write null data to the output file for the number of rows specified.
Will only be called when writing one file per tile.
| virtual const void* SPATMOD::IMAGE::TARGET_FILE::v_GetBuffer | ( | ) | const [private, virtual] |
Get pointer to memory buffer.
| virtual INT64 SPATMOD::IMAGE::TARGET_FILE::v_GetBufferSize | ( | ) | const [private, virtual] |
Get memory buffer size.
| ERRVALUE SPATMOD::IMAGE::TARGET_FILE::v_PushSubSection | ( | const SECTION & | SubSection, | |
| const BUFFER & | buffer | |||
| ) | [private, virtual] |
Final - derived classes do not implement this.
Implements SPATMOD::IMAGE::TARGET.
| virtual ERRVALUE SPATMOD::IMAGE::TARGET_FILE::v_TileBegin | ( | const FILEPATH & | FilePath, | |
| const LRECT2D & | Extents | |||
| ) | [private, pure virtual] |
Called only when writing one file per tile.
Derived classes should open file here and do any required preprocessing.
| virtual ERRVALUE SPATMOD::IMAGE::TARGET_FILE::v_TileEnd | ( | ) | [private, pure virtual] |
Called only when writing one file per tile.
Derived classes should close file here and do any required postprocessing.
| virtual ERRVALUE SPATMOD::IMAGE::TARGET_FILE::v_WriteSubSection | ( | const SECTION & | SubSection, | |
| const BUFFER & | buffer | |||
| ) | [private, pure virtual] |
Write a subsection to the output file. Called by v_PushSubSection.
| ERRVALUE SPATMOD::IMAGE::TARGET_FILE::WriteGeoFormats | ( | ) | [protected] |
Write georeference formats (if available from source).
If no georeference is available from source, no error will be returned. Error will be returned if cannot convert source georeference to current GeoFormat.
1.6.1