pihmLIBS/shapefil.h File Reference

#include <stdio.h>

Include dependency graph for shapefil.h:

This graph shows which files directly or indirectly include this file:

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_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 SHPInfoSHPHandle
typedef shape_tree_node SHPTreeNode
typedef DBFInfoDBFHandle

Enumerations

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

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(*) DBFReadLogicalAttribute(DBFHandle hDBF, int iShape, int iField
int SHPAPI_CALL DBFIsAttributeNULL (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 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

Definition at line 142 of file shapefil.h.

#define MAX_SUBNODE   4

Definition at line 321 of file shapefil.h.

#define SHPAPI_CALL1 (  )     x SHPAPI_CALL

Definition at line 183 of file shapefil.h.

#define SHPP_FIRSTRING   4

Definition at line 242 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPP_INNERRING   3

Definition at line 241 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPP_OUTERRING   2

Definition at line 240 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPP_RING   5

Definition at line 243 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPP_TRIFAN   1

Definition at line 239 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPP_TRISTRIP   0

Definition at line 238 of file shapefil.h.

Referenced by SHPPartTypeName().

#define SHPT_ARC   3

Definition at line 219 of file shapefil.h.

Referenced by catchmentPoly(), extractRiver4mTIN(), mergeFeatures(), polygonToPolyline(), SHPTypeName(), SHPWriteObject(), splitLineAtVertices(), streamGenShp(), and streamSegmentationShp().

#define SHPT_ARCM   23

Definition at line 227 of file shapefil.h.

Referenced by SHPTypeName(), and SHPWriteObject().

#define SHPT_ARCZ   13

Definition at line 223 of file shapefil.h.

Referenced by SHPTypeName(), and SHPWriteObject().

#define SHPT_MULTIPATCH   31

Definition at line 230 of file shapefil.h.

Referenced by SHPTypeName(), and SHPWriteObject().

#define SHPT_MULTIPOINT   8

Definition at line 221 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_MULTIPOINTM   28

Definition at line 229 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_MULTIPOINTZ   18

Definition at line 225 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_NULL   0

Definition at line 217 of file shapefil.h.

Referenced by SHPTypeName(), and SHPWriteObject().

#define SHPT_POINT   1

Definition at line 218 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_POINTM   21

Definition at line 226 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_POINTZ   11

Definition at line 222 of file shapefil.h.

Referenced by SHPTypeName().

#define SHPT_POLYGON   5

Definition at line 220 of file shapefil.h.

Referenced by catchmentPoly(), createTinShapeFile(), SHPRewindObject(), SHPTypeName(), and SHPWriteObject().

#define SHPT_POLYGONM   25

Definition at line 228 of file shapefil.h.

Referenced by SHPRewindObject(), SHPTypeName(), and SHPWriteObject().

#define SHPT_POLYGONZ   15

Definition at line 224 of file shapefil.h.

Referenced by SHPRewindObject(), SHPTypeName(), and SHPWriteObject().

#define TRIM_DBF_WHITESPACE

Definition at line 135 of file shapefil.h.

#define XBASE_FLDHDR_SZ   32

Definition at line 416 of file shapefil.h.

Referenced by DBFWriteHeader().


Typedef Documentation

typedef DBFInfo* DBFHandle

Definition at line 406 of file shapefil.h.

typedef SHPInfo* SHPHandle

Definition at line 212 of file shapefil.h.

typedef struct shape_tree_node SHPTreeNode


Enumeration Type Documentation

enum DBFFieldType

Enumerator:
FTString 
FTInteger 
FTDouble 
FTLogical 
FTInvalid 

Definition at line 408 of file shapefil.h.


Function Documentation

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

Definition at line 585 of file dbfopen.c.

References DBFInfo::bNoHeader, DBFInfo::bUpdated, FALSE, FTDouble, FTLogical, FTString, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, and SfRealloc().

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), catchmentPoly(), createTinShapeFile(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), simplifyPolySHP(), splitLineAtVertices(), and streamSegmentationShp().

Here is the call graph for this function:

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

Definition at line 1395 of file dbfopen.c.

References DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFClose(), DBFCreate(), DBFOpen(), DBFWriteHeader(), memcpy(), DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, NULL, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszHeader, and TRUE.

Here is the call graph for this function:

void SHPAPI_CALL DBFClose ( DBFHandle  hDBF  ) 

Definition at line 442 of file dbfopen.c.

References DBFInfo::bNoHeader, DBFInfo::bUpdated, DBFFlushRecord(), DBFWriteHeader(), DBFInfo::fp, fread(), fseek(), DBFInfo::nRecords, nStringFieldLen, NULL, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, and pszStringField.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), catchmentPoly(), createTinShapeFile(), DBFCloneEmpty(), extractRiver4mTIN(), generateShape(), mergeFeatures(), simplifyPolySHP(), splitLineAtVertices(), and streamSegmentationShp().

Here is the call graph for this function:

DBFHandle SHPAPI_CALL DBFCreate ( const char *  pszDBFFile  ) 

Definition at line 509 of file dbfopen.c.

References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, FALSE, DBFInfo::fp, DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, NULL, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, and TRUE.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), catchmentPoly(), createTinShapeFile(), DBFCloneEmpty(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), simplifyPolySHP(), splitLineAtVertices(), and streamSegmentationShp().

int SHPAPI_CALL DBFGetFieldCount ( DBFHandle  psDBF  ) 

Definition at line 897 of file dbfopen.c.

References DBFInfo::nFields.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), and DBFGetFieldIndex().

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

Definition at line 1475 of file dbfopen.c.

References DBFGetFieldCount(), DBFGetFieldInfo(), name(), NULL, and str_to_upper().

Referenced by addSOrder(), calDownSegment(), rivFileDlg::run(), and simplifyPolySHP().

Here is the call graph for this function:

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

Definition at line 923 of file dbfopen.c.

References FTDouble, FTInteger, FTInvalid, FTLogical, DBFInfo::nFields, NULL, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldSize, and DBFInfo::pszHeader.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), and DBFGetFieldIndex().

char SHPAPI_CALL DBFGetNativeFieldType ( DBFHandle  hDBF,
int  iField 
)

Definition at line 1441 of file dbfopen.c.

References DBFInfo::pachFieldType.

int SHPAPI_CALL DBFGetRecordCount ( DBFHandle  psDBF  ) 

Definition at line 910 of file dbfopen.c.

References DBFInfo::nRecords.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), extractRiver4mTIN(), mergeFeatures(), polygonToPolyline(), attFileDlg::run(), rivFileDlg::run(), simplifyPolySHP(), and splitLineAtVertices().

int SHPAPI_CALL DBFIsAttributeNULL ( DBFHandle  hDBF,
int  iShape,
int  iField 
)

Definition at line 862 of file dbfopen.c.

References DBFReadStringAttribute(), and DBFInfo::pachFieldType.

Here is the call graph for this function:

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

Definition at line 305 of file dbfopen.c.

References DBFInfo::bCurrentRecordModified, DBFInfo::bNoHeader, FALSE, DBFInfo::fp, fread(), fseek(), DBFInfo::nCurrentRecord, DBFInfo::nFields, DBFInfo::nHeaderLength, DBFInfo::nRecordLength, DBFInfo::nRecords, NULL, DBFInfo::pachFieldType, DBFInfo::panFieldDecimals, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszHeader, and SfRealloc().

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), DBFCloneEmpty(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), attFileDlg::run(), rivFileDlg::run(), simplifyPolySHP(), and splitLineAtVertices().

Here is the call graph for this function:

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

Definition at line 814 of file dbfopen.c.

References DBFReadAttribute(), and NULL.

Referenced by addFID(), addSOrder(), addToFromNode(), and calDownSegment().

Here is the call graph for this function:

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

Definition at line 794 of file dbfopen.c.

References DBFReadAttribute(), and NULL.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), rivFileDlg::run(), and simplifyPolySHP().

Here is the call graph for this function:

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 
)

Definition at line 1140 of file dbfopen.c.

References DBFInfo::bNoHeader, DBFFlushRecord(), DBFWriteHeader(), FALSE, fread(), fseek(), DBFInfo::nCurrentRecord, DBFInfo::nRecordLength, DBFInfo::nRecords, pabyRec, and DBFInfo::pszCurrentRecord.

Here is the call graph for this function:

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

Definition at line 1216 of file dbfopen.c.

References DBFWriteAttribute().

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), and generateShape().

Here is the call graph for this function:

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

Definition at line 1230 of file dbfopen.c.

References DBFWriteAttribute().

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), catchmentPoly(), createTinShapeFile(), extractRiver4mTIN(), generateShape(), mergeFeatures(), simplifyPolySHP(), splitLineAtVertices(), and streamGenShp().

Here is the call graph for this function:

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

Definition at line 1273 of file dbfopen.c.

References DBFWriteAttribute().

Here is the call graph for this function:

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

Definition at line 1260 of file dbfopen.c.

References DBFWriteAttribute(), and NULL.

Here is the call graph for this function:

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

Definition at line 1246 of file dbfopen.c.

References DBFWriteAttribute().

Referenced by addFID(), addSOrder(), addToFromNode(), and calDownSegment().

Here is the call graph for this function:

void SHPAPI_CALL SHPClose ( SHPHandle  hSHP  ) 

Definition at line 553 of file shpopen.c.

References SHPInfo::bUpdated, SHPInfo::fpSHP, SHPInfo::fpSHX, NULL, SHPInfo::pabyRec, SHPInfo::panRecOffset, SHPInfo::panRecSize, and SHPWriteHeader().

Referenced by addSOrder(), addToFromNode(), catchmentPoly(), createTinShapeFile(), extractRiver4mTIN(), generateShape(), mergeFeatures(), simplifyPolySHP(), splitLineAtVertices(), and streamSegmentationShp().

Here is the call graph for this function:

void SHPAPI_CALL SHPComputeExtents ( SHPObject psObject  ) 

Definition at line 749 of file shpopen.c.

Referenced by createTinShapeFile(), and simplifyPolySHP().

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

Definition at line 617 of file shpopen.c.

References bBigEndian, ByteCopy, FALSE, NULL, SHPOpen(), SwapWord(), and TRUE.

Referenced by catchmentPoly(), createTinShapeFile(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), simplifyPolySHP(), splitLineAtVertices(), and streamSegmentationShp().

Here is the call graph for this function:

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

Referenced by createTinShapeFile().

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

void SHPAPI_CALL SHPDestroyObject ( SHPObject psObject  ) 

Definition at line 1694 of file shpopen.c.

References NULL, and psShape.

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

Definition at line 588 of file shpopen.c.

References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, SHPInfo::nRecords, SHPInfo::nShapeType, and NULL.

Referenced by generatePolyFile(), generateShape(), and polygonToPolyLineDialogDlg::run().

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

Definition at line 341 of file shpopen.c.

References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, bBigEndian, SHPInfo::bUpdated, FALSE, SHPInfo::fpSHP, SHPInfo::fpSHX, fread(), MAX, memcpy(), SHPInfo::nFileSize, SHPInfo::nMaxRecords, SHPInfo::nRecords, SHPInfo::nShapeType, NULL, SHPInfo::panRecOffset, SHPInfo::panRecSize, SwapWord(), and TRUE.

Referenced by addSOrder(), addToFromNode(), extractRiver4mTIN(), generatePolyFile(), generateShape(), mergeFeatures(), polygonToPolyline(), polygonToPolyLineDialogDlg::run(), attFileDlg::run(), SHPCreate(), simplifyPolySHP(), and splitLineAtVertices().

Here is the call graph for this function:

SHPObject SHPAPI_CALL1* SHPReadObject ( SHPHandle  hSHP,
int  iShape 
)

Referenced by addToFromNode(), extractRiver4mTIN(), generatePolyFile(), generateShape(), mergeFeatures(), polygonToPolyline(), attFileDlg::run(), simplifyPolySHP(), and splitLineAtVertices().

SHPTree SHPAPI_CALL SHPReadTree ( const char *  pszFilename  ) 

int SHPAPI_CALL SHPRewindObject ( SHPHandle  hSHP,
SHPObject psObject 
)

Definition at line 1725 of file shpopen.c.

References FALSE, SHPObject::nParts, SHPObject::nSHPType, SHPObject::nVertices, SHPObject::padfX, SHPObject::padfY, SHPObject::panPartStart, SHPT_POLYGON, SHPT_POLYGONM, and SHPT_POLYGONZ.

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

Definition at line 1603 of file shpopen.c.

References SHPT_ARC, SHPT_ARCM, SHPT_ARCZ, SHPT_MULTIPATCH, SHPT_MULTIPOINT, SHPT_MULTIPOINTM, SHPT_MULTIPOINTZ, SHPT_NULL, SHPT_POINT, SHPT_POINTM, SHPT_POINTZ, SHPT_POLYGON, SHPT_POLYGONM, and SHPT_POLYGONZ.

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


Generated on Sun Aug 5 17:34:49 2007 for PIHMgis by  doxygen 1.5.2