| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

Classes | Defines | Typedefs | Enumerations | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/shapelib/shapefil.h File Reference
`#include <stdio.h>`

Go to the source code of this file.

## Classes

struct | SHPInfo
struct | SHPObject
struct | shape_tree_node
struct | SHPTree
struct | DBFInfo

## Defines

#define | TRIM_DBF_WHITESPACE
#define | DISABLE_MULTIPATCH_MEASURE
#define | SHPAPI_CALL
#define | SHPAPI_CALL1(x) x SHPAPI_CALL
#define | SHPT_NULL 0
#define | SHPT_POINT 1
#define | SHPT_ARC 3
#define | SHPT_POLYGON 5
#define | SHPT_MULTIPOINT 8
#define | SHPT_POINTZ 11
#define | SHPT_ARCZ 13
#define | SHPT_POLYGONZ 15
#define | SHPT_MULTIPOINTZ 18
#define | SHPT_POINTM 21
#define | SHPT_ARCM 23
#define | SHPT_POLYGONM 25
#define | SHPT_MULTIPOINTM 28
#define | SHPT_MULTIPATCH 31
#define | SHPP_TRISTRIP 0
#define | SHPP_TRIFAN 1
#define | SHPP_OUTERRING 2
#define | SHPP_INNERRING 3
#define | SHPP_FIRSTRING 4
#define | SHPP_RING 5
#define | MAX_SUBNODE 4
#define | XBASE_FLDHDR_SZ 32

## Typedefs

typedef SHPInfo * | SHPHandle
typedef struct shape_tree_node | SHPTreeNode
typedef DBFInfo * | DBFHandle

## Enumerations

enum | DBFFieldType { FTString, FTInteger, FTDouble, FTLogical, FTInvalid, FTDate }

## Functions

SHPHandle SHPAPI_CALL | SHPOpen (const char *pszShapeFile, const char *pszAccess)
SHPHandle SHPAPI_CALL | SHPCreate (const char *pszShapeFile, int nShapeType)
void SHPAPI_CALL | SHPGetInfo (SHPHandle hSHP, int *pnEntities, int *pnShapeType, double *padfMinBound, double *padfMaxBound)
SHPObject SHPAPI_CALL1 * | SHPReadObject (SHPHandle hSHP, int iShape);int SHPAPI_CALLSHPWriteObject(SHPHandle hSHP, int iShape, SHPObject *psObject
void SHPAPI_CALL | SHPDestroyObject (SHPObject *psObject)
void SHPAPI_CALL | SHPComputeExtents (SHPObject *psObject)
SHPObject SHPAPI_CALL1 * | SHPCreateObject (int nSHPType, int nShapeId, int nParts, int *panPartStart, int *panPartType, int nVertices, double *padfX, double *padfY, double *padfZ, double *padfM);SHPObject SHPAPI_CALL1(*) SHPCreateSimpleObject(int nSHPType, int nVertices, double *padfX, double *padfY, double *padfZ
int SHPAPI_CALL | SHPRewindObject (SHPHandle hSHP, SHPObject *psObject)
void SHPAPI_CALL | SHPClose (SHPHandle hSHP)
const char SHPAPI_CALL1 * | SHPTypeName (int nSHPType);const char SHPAPI_CALL1(*) SHPPartTypeName(int nPartType
SHPTree SHPAPI_CALL1 * | SHPCreateTree (SHPHandle hSHP, int nDimension, int nMaxDepth, double *padfBoundsMin, double *padfBoundsMax);voidSHPAPI_CALLSHPDestroyTree(SHPTree *hTree
int SHPAPI_CALL | SHPWriteTree (SHPTree *hTree, const char *pszFilename)
SHPTree SHPAPI_CALL | SHPReadTree (const char *pszFilename)
int SHPAPI_CALL | SHPTreeAddObject (SHPTree *hTree, SHPObject *psObject)
int SHPAPI_CALL | SHPTreeAddShapeId (SHPTree *hTree, SHPObject *psObject)
int SHPAPI_CALL | SHPTreeRemoveShapeId (SHPTree *hTree, int nShapeId)
void SHPAPI_CALL | SHPTreeTrimExtraNodes (SHPTree *hTree)
int SHPAPI_CALL1 * | SHPTreeFindLikelyShapes (SHPTree *hTree, double *padfBoundsMin, double *padfBoundsMax, int *);intSHPAPI_CALLSHPCheckBoundsOverlap(double *, double *, double *, double *, int
DBFHandle SHPAPI_CALL | DBFOpen (const char *pszDBFFile, const char *pszAccess)
DBFHandle SHPAPI_CALL | DBFCreate (const char *pszDBFFile)
int SHPAPI_CALL | DBFGetFieldCount (DBFHandle psDBF)
int SHPAPI_CALL | DBFGetRecordCount (DBFHandle psDBF)
int SHPAPI_CALL | DBFAddField (DBFHandle hDBF, const char *pszFieldName, DBFFieldType eType, int nWidth, int nDecimals)
DBFFieldType SHPAPI_CALL | DBFGetFieldInfo (DBFHandle psDBF, int iField, char *pszFieldName, int *pnWidth, int *pnDecimals)
int SHPAPI_CALL | DBFGetFieldIndex (DBFHandle psDBF, const char *pszFieldName)
int SHPAPI_CALL | DBFReadIntegerAttribute (DBFHandle hDBF, int iShape, int iField)
double SHPAPI_CALL | DBFReadDoubleAttribute (DBFHandle hDBF, int iShape, int iField)
const char SHPAPI_CALL1 * | DBFReadStringAttribute (DBFHandle hDBF, int iShape, int iField);const char SHPAPI_CALL1(*) DBFReadDatettribute(DBFHandle hDBF, int iShape, int iField
const char SHPAPI_CALL1 * | DBFReadLogicalAttribute (DBFHandle hDBF, int iShape, int iField);intSHPAPI_CALLDBFIsAttributeNULL(DBFHandle hDBF, int iShape, int iField
int SHPAPI_CALL | DBFWriteIntegerAttribute (DBFHandle hDBF, int iShape, int iField, int nFieldValue)
int SHPAPI_CALL | DBFWriteDoubleAttribute (DBFHandle hDBF, int iShape, int iField, double dFieldValue)
int SHPAPI_CALL | DBFWriteStringAttribute (DBFHandle hDBF, int iShape, int iField, const char *pszFieldValue)
int SHPAPI_CALL | DBFWriteDateAttribute (DBFHandle hDBF, int iShape, int iField, const char *pszFieldValue)
int SHPAPI_CALL | DBFWriteNULLAttribute (DBFHandle hDBF, int iShape, int iField)
int SHPAPI_CALL | DBFWriteLogicalAttribute (DBFHandle hDBF, int iShape, int iField, const char lFieldValue)
int SHPAPI_CALL | DBFWriteAttributeDirectly (DBFHandle psDBF, int hEntity, int iField, void *pValue)
const char SHPAPI_CALL1 * | DBFReadTuple (DBFHandle psDBF, int hEntity);int SHPAPI_CALLDBFWriteTuple(DBFHandle psDBF, int hEntity, void *pRawTuple
DBFHandle SHPAPI_CALL | DBFCloneEmpty (DBFHandle psDBF, const char *pszFilename)
void SHPAPI_CALL | DBFClose (DBFHandle hDBF)
char SHPAPI_CALL | DBFGetNativeFieldType (DBFHandle hDBF, int iField)

## Define Documentation

#define DISABLE_MULTIPATCH_MEASURE

#define MAX_SUBNODE 4

#define SHPAPI_CALL

#define SHPAPI_CALL1 | ( |  | x | ) | x SHPAPI_CALL

#define SHPP_FIRSTRING 4

#define SHPP_INNERRING 3

#define SHPP_OUTERRING 2

#define SHPP_RING 5

#define SHPP_TRIFAN 1

#define SHPP_TRISTRIP 0

#define SHPT_ARC 3

#define SHPT_ARCM 23

#define SHPT_ARCZ 13

#define SHPT_MULTIPATCH 31

#define SHPT_MULTIPOINT 8

#define SHPT_MULTIPOINTM 28

#define SHPT_MULTIPOINTZ 18

#define SHPT_NULL 0

#define SHPT_POINT 1

#define SHPT_POINTM 21

#define SHPT_POINTZ 11

#define SHPT_POLYGON 5

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

#define SHPT_POLYGONM 25

#define SHPT_POLYGONZ 15

#define TRIM_DBF_WHITESPACE

#define XBASE_FLDHDR_SZ 32

## Typedef Documentation

typedef DBFInfo* DBFHandle

typedef SHPInfo* SHPHandle

typedef struct shape_tree_node SHPTreeNode

## Enumeration Type Documentation

enum DBFFieldType

Enumerator:

  FTString |
  FTInteger |
  FTDouble |
  FTLogical |
  FTInvalid |
  FTDate |

## Function Documentation

int SHPAPI_CALL DBFAddField | ( | DBFHandle | hDBF,
|  | const char * | pszFieldName,
|  | DBFFieldType | eType,
|  | int | nWidth,
|  | int | nDecimals
| ) |  |

DBFHandle SHPAPI_CALL DBFCloneEmpty | ( | DBFHandle | psDBF,
|  | const char * | pszFilename
| ) |  |

void SHPAPI_CALL DBFClose | ( | DBFHandle | hDBF | ) |

DBFHandle SHPAPI_CALL DBFCreate | ( | const char * | pszDBFFile | ) |

int SHPAPI_CALL DBFGetFieldCount | ( | DBFHandle | psDBF | ) |

int SHPAPI_CALL DBFGetFieldIndex | ( | DBFHandle | psDBF,
|  | const char * | pszFieldName
| ) |  |

DBFFieldType SHPAPI_CALL DBFGetFieldInfo | ( | DBFHandle | psDBF,
|  | int | iField,
|  | char * | pszFieldName,
|  | int * | pnWidth,
|  | int * | pnDecimals
| ) |  |

char SHPAPI_CALL DBFGetNativeFieldType | ( | DBFHandle | hDBF,
|  | int | iField
| ) |  |

int SHPAPI_CALL DBFGetRecordCount | ( | DBFHandle | psDBF | ) |

DBFHandle SHPAPI_CALL DBFOpen | ( | const char * | pszDBFFile,
|  | const char * | pszAccess
| ) |  |

double SHPAPI_CALL DBFReadDoubleAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField
| ) |  |

int SHPAPI_CALL DBFReadIntegerAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField
| ) |  |

const char SHPAPI_CALL1* DBFReadLogicalAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField
| ) |  |

const char SHPAPI_CALL1* DBFReadStringAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField
| ) |  | const

const char SHPAPI_CALL1* DBFReadTuple | ( | DBFHandle | psDBF,
|  | int | hEntity
| ) |  |

int SHPAPI_CALL DBFWriteAttributeDirectly | ( | DBFHandle | psDBF,
|  | int | hEntity,
|  | int | iField,
|  | void * | pValue
| ) |  |

int SHPAPI_CALL DBFWriteDateAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField,
|  | const char * | pszFieldValue
| ) |  |

int SHPAPI_CALL DBFWriteDoubleAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField,
|  | double | dFieldValue
| ) |  |

int SHPAPI_CALL DBFWriteIntegerAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField,
|  | int | nFieldValue
| ) |  |

int SHPAPI_CALL DBFWriteLogicalAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField,
|  | const char | lFieldValue
| ) |  |

int SHPAPI_CALL DBFWriteNULLAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField
| ) |  |

int SHPAPI_CALL DBFWriteStringAttribute | ( | DBFHandle | hDBF,
|  | int | iShape,
|  | int | iField,
|  | const char * | pszFieldValue
| ) |  |

void SHPAPI_CALL SHPClose | ( | SHPHandle | hSHP | ) |

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

void SHPAPI_CALL SHPComputeExtents | ( | SHPObject * | psObject | ) |

SHPHandle SHPAPI_CALL SHPCreate | ( | const char * | pszShapeFile,
|  | int | nShapeType
| ) |  |

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

SHPObject SHPAPI_CALL1* SHPCreateObject | ( | int | nSHPType,
|  | int | nShapeId,
|  | int | nParts,
|  | int * | panPartStart,
|  | int * | panPartType,
|  | int | nVertices,
|  | double * | padfX,
|  | double * | padfY,
|  | double * | padfZ,
|  | double * | padfM
| ) |  |

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

SHPTree SHPAPI_CALL1* SHPCreateTree | ( | SHPHandle | hSHP,
|  | int | nDimension,
|  | int | nMaxDepth,
|  | double * | padfBoundsMin,
|  | double * | padfBoundsMax
| ) |  |

void SHPAPI_CALL SHPDestroyObject | ( | SHPObject * | psObject | ) |

Examples:
  TePDIRaster2Vector_test.cpp, and TePDISegmentation_test.cpp.

void SHPAPI_CALL SHPGetInfo | ( | SHPHandle | hSHP,
|  | int * | pnEntities,
|  | int * | pnShapeType,
|  | double * | padfMinBound,
|  | double * | padfMaxBound
| ) |  |

SHPHandle SHPAPI_CALL SHPOpen | ( | const char * | pszShapeFile,
|  | const char * | pszAccess
| ) |  |

SHPObject SHPAPI_CALL1* SHPReadObject | ( | SHPHandle | hSHP,
|  | int | iShape
| ) |  |

SHPTree SHPAPI_CALL SHPReadTree | ( | const char * | pszFilename | ) |

int SHPAPI_CALL SHPRewindObject | ( | SHPHandle | hSHP,
|  | SHPObject * | psObject
| ) |  |

int SHPAPI_CALL SHPTreeAddObject | ( | SHPTree * | hTree,
|  | SHPObject * | psObject
| ) |  |

int SHPAPI_CALL SHPTreeAddShapeId | ( | SHPTree * | hTree,
|  | SHPObject * | psObject
| ) |  |

int SHPAPI_CALL1* SHPTreeFindLikelyShapes | ( | SHPTree * | hTree,
|  | double * | padfBoundsMin,
|  | double * | padfBoundsMax,
|  | int * |
| ) |  |

int SHPAPI_CALL SHPTreeRemoveShapeId | ( | SHPTree * | hTree,
|  | int | nShapeId
| ) |  |

void SHPAPI_CALL SHPTreeTrimExtraNodes | ( | SHPTree * | hTree | ) |

const char SHPAPI_CALL1* SHPTypeName | ( | int | nSHPType | ) | const

int SHPAPI_CALL SHPWriteTree | ( | SHPTree * | hTree,
|  | const char * | pszFilename
| ) |  |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines