NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
geotiffdispatch.h File Reference

Public types and prototypes for the GeoTIFF UDF dispatch layer. More...

#include "config.h"
#include "ncdispatch.h"
#include "nc4internal.h"
#include "nep.h"

Go to the source code of this file.

Data Structures

struct  NC_VAR_GEOTIFF_INFO
 
struct  nc_geotiff_crs_info
 
struct  NC_GEOTIFF_FILE_INFO
 

Macros

#define NC_FORMATX_NC_GEOTIFF   NC_FORMATX_UDF1
 
#define TIFF_MAGIC_LE   0x4949 /* Little-endian "II" */
 
#define TIFF_MAGIC_BE   0x4D4D /* Big-endian "MM" */
 
#define TIFF_VERSION_CLASSIC   42
 
#define TIFF_VERSION_BIGTIFF   43
 
#define TIFF_HEADER_SIZE   8
 
#define NC_GEOTIFF_CRS_UNKNOWN   0
 
#define NC_GEOTIFF_CRS_GEOGRAPHIC   1
 
#define NC_GEOTIFF_CRS_PROJECTED   2
 
#define GEOTIFF_INIT_OK()   (NC_GEOTIFF_initialize() != NULL)
 
#define GEOTIFF_INIT_AND_ASSIGN(ret)
 

Typedefs

typedef struct NC_VAR_GEOTIFF_INFO NC_VAR_GEOTIFF_INFO_T
 
typedef struct nc_geotiff_crs_info NC_GEOTIFF_CRS_INFO_T
 
typedef struct NC_GEOTIFF_FILE_INFO NC_GEOTIFF_FILE_INFO_T
 

Functions

int NC_GEOTIFF_open (const char *path, int mode, int basepe, size_t *chunksizehintp, void *parameters, const NC_Dispatch *, int)
 
int NC_GEOTIFF_abort (int ncid)
 
int NC_GEOTIFF_close (int ncid, void *ignore)
 
int NC_GEOTIFF_inq_format (int ncid, int *formatp)
 
int NC_GEOTIFF_inq_format_extended (int ncid, int *formatp, int *modep)
 
int NC_GEOTIFF_get_vara (int ncid, int varid, const size_t *start, const size_t *count, void *value, nc_type)
 
NC_Dispatch * NC_GEOTIFF_initialize (void)
 
int NC_GEOTIFF_finalize (void)
 
int NC_GEOTIFF_detect_format (const char *path, int *is_geotiff)
 
int NC_GEOTIFF_extract_metadata (NC_FILE_INFO_T *h5, NC_GEOTIFF_FILE_INFO_T *geotiff_info)
 

Variables

const NC_Dispatch * GEOTIFF_dispatch_table
 

Detailed Description

Public types and prototypes for the GeoTIFF UDF dispatch layer.

Author
Edward Hartnett
Date
2025-12-26

Macro Definition Documentation

◆ GEOTIFF_INIT_AND_ASSIGN

#define GEOTIFF_INIT_AND_ASSIGN (   ret)
Value:
do { \
NC_Dispatch *_d = NC_GEOTIFF_initialize(); \
(ret) = (_d != NULL) ? NC_NOERR : NC_ENOTNC; \
} while(0)
NC_Dispatch * NC_GEOTIFF_initialize(void)
Definition geotiffdispatch.c:123

◆ GEOTIFF_INIT_OK

#define GEOTIFF_INIT_OK ( )    (NC_GEOTIFF_initialize() != NULL)

◆ NC_FORMATX_NC_GEOTIFF

#define NC_FORMATX_NC_GEOTIFF   NC_FORMATX_UDF1

GeoTIFF format uses UDF1 slot for dispatch table model field (see NEP.h for slot allocation)

◆ NC_GEOTIFF_CRS_GEOGRAPHIC

#define NC_GEOTIFF_CRS_GEOGRAPHIC   1

◆ NC_GEOTIFF_CRS_PROJECTED

#define NC_GEOTIFF_CRS_PROJECTED   2

◆ NC_GEOTIFF_CRS_UNKNOWN

#define NC_GEOTIFF_CRS_UNKNOWN   0

CRS coordinate system types

◆ TIFF_HEADER_SIZE

#define TIFF_HEADER_SIZE   8

Minimum TIFF header size for validation

◆ TIFF_MAGIC_BE

#define TIFF_MAGIC_BE   0x4D4D /* Big-endian "MM" */

◆ TIFF_MAGIC_LE

#define TIFF_MAGIC_LE   0x4949 /* Little-endian "II" */

TIFF magic numbers for format detection

◆ TIFF_VERSION_BIGTIFF

#define TIFF_VERSION_BIGTIFF   43

◆ TIFF_VERSION_CLASSIC

#define TIFF_VERSION_CLASSIC   42

TIFF version numbers

Typedef Documentation

◆ NC_GEOTIFF_CRS_INFO_T

CRS parameter storage structure

◆ NC_GEOTIFF_FILE_INFO_T

◆ NC_VAR_GEOTIFF_INFO_T

Function Documentation

◆ NC_GEOTIFF_abort()

int NC_GEOTIFF_abort ( int  ncid)
extern

◆ NC_GEOTIFF_close()

int NC_GEOTIFF_close ( int  ncid,
void *  ignore 
)
extern

◆ NC_GEOTIFF_detect_format()

int NC_GEOTIFF_detect_format ( const char *  path,
int *  is_geotiff 
)
extern

◆ NC_GEOTIFF_extract_metadata()

int NC_GEOTIFF_extract_metadata ( NC_FILE_INFO_T *  h5,
NC_GEOTIFF_FILE_INFO_T geotiff_info 
)
extern

◆ NC_GEOTIFF_finalize()

int NC_GEOTIFF_finalize ( void  )
extern

◆ NC_GEOTIFF_get_vara()

int NC_GEOTIFF_get_vara ( int  ncid,
int  varid,
const size_t *  start,
const size_t *  count,
void *  value,
nc_type   
)
extern

◆ NC_GEOTIFF_initialize()

NC_Dispatch * NC_GEOTIFF_initialize ( void  )
extern

◆ NC_GEOTIFF_inq_format()

int NC_GEOTIFF_inq_format ( int  ncid,
int *  formatp 
)
extern

◆ NC_GEOTIFF_inq_format_extended()

int NC_GEOTIFF_inq_format_extended ( int  ncid,
int *  formatp,
int *  modep 
)
extern

◆ NC_GEOTIFF_open()

int NC_GEOTIFF_open ( const char *  path,
int  mode,
int  basepe,
size_t *  chunksizehintp,
void *  parameters,
const NC_Dispatch *  ,
int   
)
extern

Variable Documentation

◆ GEOTIFF_dispatch_table

const NC_Dispatch* GEOTIFF_dispatch_table
extern