GRASS Programmer's Manual
6.4.2(2012)
|
#include <grass/shapefil.h>
#include <math.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | FALSE 0 |
#define | TRUE 1 |
Functions | |
void SHPAPI_CALL | DBFUpdateHeader (DBFHandle psDBF) |
DBFHandle SHPAPI_CALL | DBFOpen (const char *pszFilename, const char *pszAccess) |
DBFHandle SHPAPI_CALL | DBFOpenLL (const char *pszFilename, const char *pszAccess, SAHooks *psHooks) |
void SHPAPI_CALL | DBFClose (DBFHandle psDBF) |
DBFHandle SHPAPI_CALL | DBFCreate (const char *pszFilename) |
DBFHandle SHPAPI_CALL | DBFCreateLL (const char *pszFilename, SAHooks *psHooks) |
int SHPAPI_CALL | DBFAddField (DBFHandle psDBF, const char *pszFieldName, DBFFieldType eType, int nWidth, int nDecimals) |
int SHPAPI_CALL | DBFAddNativeFieldType (DBFHandle psDBF, const char *pszFieldName, char chType, int nWidth, int nDecimals) |
int SHPAPI_CALL | DBFReadIntegerAttribute (DBFHandle psDBF, int iRecord, int iField) |
double SHPAPI_CALL | DBFReadDoubleAttribute (DBFHandle psDBF, int iRecord, int iField) |
const char SHPAPI_CALL1 * | DBFReadStringAttribute (DBFHandle psDBF, int iRecord, int iField){return((const char *) DBFReadAttribute(psDBF, iRecord, iField, 'C') |
const char SHPAPI_CALL1 * | DBFReadLogicalAttribute (DBFHandle psDBF, int iRecord, int iField){return((const char *) DBFReadAttribute(psDBF, iRecord, iField, 'L') |
int SHPAPI_CALL | DBFIsAttributeNULL (DBFHandle psDBF, int iRecord, int iField) |
int SHPAPI_CALL | DBFGetFieldCount (DBFHandle psDBF) |
int SHPAPI_CALL | DBFGetRecordCount (DBFHandle psDBF) |
DBFFieldType SHPAPI_CALL | DBFGetFieldInfo (DBFHandle psDBF, int iField, char *pszFieldName, int *pnWidth, int *pnDecimals) |
int SHPAPI_CALL | DBFWriteAttributeDirectly (DBFHandle psDBF, int hEntity, int iField, void *pValue) |
int SHPAPI_CALL | DBFWriteDoubleAttribute (DBFHandle psDBF, int iRecord, int iField, double dValue) |
int SHPAPI_CALL | DBFWriteIntegerAttribute (DBFHandle psDBF, int iRecord, int iField, int nValue) |
int SHPAPI_CALL | DBFWriteStringAttribute (DBFHandle psDBF, int iRecord, int iField, const char *pszValue) |
int SHPAPI_CALL | DBFWriteNULLAttribute (DBFHandle psDBF, int iRecord, int iField) |
int SHPAPI_CALL | DBFWriteLogicalAttribute (DBFHandle psDBF, int iRecord, int iField, const char lValue) |
int SHPAPI_CALL | DBFWriteTuple (DBFHandle psDBF, int hEntity, void *pRawTuple) |
const char SHPAPI_CALL1 * | DBFReadTuple (DBFHandle psDBF, int hEntity){if(hEntity< 0||hEntity >=psDBF->nRecords) return(NULL |
if (!DBFLoadRecord(psDBF, hEntity)) return NULL | |
return (const char *) | |
char SHPAPI_CALL | DBFGetNativeFieldType (DBFHandle psDBF, int iField) |
int SHPAPI_CALL | DBFGetFieldIndex (DBFHandle psDBF, const char *pszFieldName) |
int SHPAPI_CALL | DBFIsRecordDeleted (DBFHandle psDBF, int iShape) |
int SHPAPI_CALL | DBFMarkRecordDeleted (DBFHandle psDBF, int iShape, int bIsDeleted) |
#define FALSE 0 |
Definition at line 117 of file dbfopen.c.
Referenced by DBFAddNativeFieldType(), DBFCreateLL(), DBFIsAttributeNULL(), DBFIsRecordDeleted(), DBFMarkRecordDeleted(), DBFOpenLL(), DBFWriteAttributeDirectly(), DBFWriteTuple(), dig_init_portable(), G_format_easting(), G_format_northing(), G_format_resolution(), G_is_c_null_value(), G_is_null_value(), G_parser(), G_point_in_window(), G_wait(), Gp_load_sites(), RTreeContained(), RTreeOverlap(), V1_open_old_ogr(), Vect_cat_in_array(), Vect_cat_in_cat_list(), and Vect_read_dblinks().
#define TRUE 1 |
Definition at line 118 of file dbfopen.c.
Referenced by DBFCreateLL(), DBFIsAttributeNULL(), DBFIsRecordDeleted(), DBFMarkRecordDeleted(), DBFWriteTuple(), dig_init_portable(), DllMain(), G__init_null_patterns(), G_compare_projections(), G_format_easting(), G_format_northing(), G_format_resolution(), G_is_c_null_value(), G_parser(), G_point_in_window(), gsd_scalebar(), RTreeContained(), RTreeOverlap(), Vect_cat_in_array(), and Vect_cat_in_cat_list().
int SHPAPI_CALL DBFAddField | ( | DBFHandle | psDBF, |
const char * | pszFieldName, | ||
DBFFieldType | eType, | ||
int | nWidth, | ||
int | nDecimals | ||
) |
Definition at line 630 of file dbfopen.c.
References DBFAddNativeFieldType().
int SHPAPI_CALL DBFAddNativeFieldType | ( | DBFHandle | psDBF, |
const char * | pszFieldName, | ||
char | chType, | ||
int | nWidth, | ||
int | nDecimals | ||
) |
void SHPAPI_CALL DBFClose | ( | DBFHandle | psDBF | ) |
Definition at line 489 of file dbfopen.c.
References DBFUpdateHeader(), and NULL.
DBFHandle SHPAPI_CALL DBFCreate | ( | const char * | pszFilename | ) |
Definition at line 535 of file dbfopen.c.
References DBFCreateLL(), and SASetupDefaultHooks().
DBFHandle SHPAPI_CALL DBFCreateLL | ( | const char * | pszFilename, |
SAHooks * | psHooks | ||
) |
Definition at line 552 of file dbfopen.c.
References FALSE, SAHooks::FClose, SAHooks::FOpen, SAHooks::FWrite, NULL, and TRUE.
Referenced by DBFCreate().
int SHPAPI_CALL DBFGetFieldCount | ( | DBFHandle | psDBF | ) |
Definition at line 957 of file dbfopen.c.
Referenced by DBFGetFieldIndex().
int SHPAPI_CALL DBFGetFieldIndex | ( | DBFHandle | psDBF, |
const char * | pszFieldName | ||
) |
Definition at line 1486 of file dbfopen.c.
References DBFGetFieldCount(), DBFGetFieldInfo(), name, and NULL.
DBFFieldType SHPAPI_CALL DBFGetFieldInfo | ( | DBFHandle | psDBF, |
int | iField, | ||
char * | pszFieldName, | ||
int * | pnWidth, | ||
int * | pnDecimals | ||
) |
char SHPAPI_CALL DBFGetNativeFieldType | ( | DBFHandle | psDBF, |
int | iField | ||
) |
int SHPAPI_CALL DBFGetRecordCount | ( | DBFHandle | psDBF | ) |
int SHPAPI_CALL DBFIsAttributeNULL | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) |
int SHPAPI_CALL DBFIsRecordDeleted | ( | DBFHandle | psDBF, |
int | iShape | ||
) |
int SHPAPI_CALL DBFMarkRecordDeleted | ( | DBFHandle | psDBF, |
int | iShape, | ||
int | bIsDeleted | ||
) |
DBFHandle SHPAPI_CALL DBFOpen | ( | const char * | pszFilename, |
const char * | pszAccess | ||
) |
Definition at line 324 of file dbfopen.c.
References DBFOpenLL(), and SASetupDefaultHooks().
double SHPAPI_CALL DBFReadDoubleAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) |
int SHPAPI_CALL DBFReadIntegerAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) |
const char SHPAPI_CALL1* DBFReadLogicalAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) | const |
const char SHPAPI_CALL1* DBFReadStringAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) | const |
Referenced by DBFIsAttributeNULL().
const char SHPAPI_CALL1* DBFReadTuple | ( | DBFHandle | psDBF, |
int | hEntity | ||
) |
void SHPAPI_CALL DBFUpdateHeader | ( | DBFHandle | psDBF | ) |
Definition at line 293 of file dbfopen.c.
Referenced by DBFClose().
int SHPAPI_CALL DBFWriteAttributeDirectly | ( | DBFHandle | psDBF, |
int | hEntity, | ||
int | iField, | ||
void * | pValue | ||
) |
int SHPAPI_CALL DBFWriteDoubleAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField, | ||
double | dValue | ||
) |
int SHPAPI_CALL DBFWriteIntegerAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField, | ||
int | nValue | ||
) |
int SHPAPI_CALL DBFWriteLogicalAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField, | ||
const char | lValue | ||
) |
int SHPAPI_CALL DBFWriteNULLAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField | ||
) |
int SHPAPI_CALL DBFWriteStringAttribute | ( | DBFHandle | psDBF, |
int | iRecord, | ||
int | iField, | ||
const char * | pszValue | ||
) |
int SHPAPI_CALL DBFWriteTuple | ( | DBFHandle | psDBF, |
int | hEntity, | ||
void * | pRawTuple | ||
) |
if | ( | ! | DBFLoadRecordpsDBF, hEntity | ) |
Referenced by G3d_fillHeader(), G_histogram_eq_colors_fp(), get_diag_intersects(), get_horz_intersects(), get_slice_value(), get_vert_intersects(), Gp_set_color(), gsd_norm_arrows(), I_cluster_exec(), I_cluster_means(), I_cluster_signatures(), rtree_write_branch(), segment_seek(), tavl_probe(), V1__rewrite_line_nat(), and V2_read_line_ogr().
return | ( | const char * | ) |
Definition at line 1396 of file dbfopen.c.
Referenced by gvl_file_set_slices_param().