|
static void | SwapWord (int length, void *wordP) |
|
static void * | SfRealloc (void *pMem, int nNewSize) |
|
void SHPAPI_CALL | SHPWriteHeader (SHPHandle psSHP) |
|
SHPHandle SHPAPI_CALL | SHPOpen (const char *pszLayer, const char *pszAccess) |
|
static int | SHPGetLenWithoutExtension (const char *pszBasename) |
|
SHPHandle SHPAPI_CALL | SHPOpenLL (const char *pszLayer, const char *pszAccess, SAHooks *psHooks) |
|
SHPHandle SHPAPI_CALL | SHPOpenLLEx (const char *pszLayer, const char *pszAccess, SAHooks *psHooks, int bRestoreSHX) |
|
int SHPAPI_CALL | SHPRestoreSHX (const char *pszLayer, const char *pszAccess, SAHooks *psHooks) |
|
void SHPAPI_CALL | SHPClose (SHPHandle psSHP) |
|
void SHPAPI_CALL | SHPSetFastModeReadObject (SHPHandle hSHP, int bFastMode) |
|
void SHPAPI_CALL | SHPGetInfo (SHPHandle psSHP, int *pnEntities, int *pnShapeType, double *padfMinBound, double *padfMaxBound) |
|
SHPHandle SHPAPI_CALL | SHPCreate (const char *pszLayer, int nShapeType) |
|
SHPHandle SHPAPI_CALL | SHPCreateLL (const char *pszLayer, int nShapeType, SAHooks *psHooks) |
|
static void | _SHPSetBounds (uchar *pabyRec, SHPObject *psShape) |
|
void SHPAPI_CALL | SHPComputeExtents (SHPObject *psObject) |
|
SHPObject SHPAPI_CALL1 * | SHPCreateObject (int nSHPType, int nShapeId, int nParts, const int *panPartStart, const int *panPartType, int nVertices, const double *padfX, const double *padfY, const double *padfZ, const double *padfM){ SHPObject *psObject;int i, bHasM, bHasZ;psObject=STATIC_CAST(SHPObject *, calloc(1, sizeof(SHPObject)) |
|
| if (nSHPType==SHPT_ARCM||nSHPType==SHPT_POINTM||nSHPType==SHPT_POLYGONM||nSHPType==SHPT_MULTIPOINTM) |
|
| if (nVertices > 0) |
|
| SHPComputeExtents (psObject) |
|
| return (psObject) |
|
SHPObject SHPAPI_CALL1 * | SHPCreateSimpleObject (int nSHPType, int nVertices, const double *padfX, const double *padfY, const double *padfZ){ return(SHPCreateObject(nSHPType, -1, 0, SHPLIB_NULLPTR, SHPLIB_NULLPTR, nVertices, padfX, padfY, padfZ, SHPLIB_NULLPTR) |
|
int SHPAPI_CALL | SHPWriteObject (SHPHandle psSHP, int nShapeId, SHPObject *psObject) |
|
static void * | SHPAllocBuffer (unsigned char **pBuffer, int nSize) |
|
static unsigned char * | SHPReallocObjectBufIfNecessary (SHPHandle psSHP, int nObjectBufSize) |
|
SHPObject SHPAPI_CALL1 * | SHPReadObject (SHPHandle psSHP, int hEntity){ int nEntitySize, nRequiredSize;SHPObject *psShape;char szErrorMsg[160];int nSHPType;int nBytesRead;if(hEntity< 0||hEntity >=psSHP->nRecords) return SHPLIB_NULLPTR;if(psSHP->panRecOffset[hEntity]==0 &&psSHP->fpSHX !=SHPLIB_NULLPTR |
|
| if (nEntitySize > psSHP->nBufSize) |
|
| if (psSHP->pabyRec==SHPLIB_NULLPTR) |
|
| if (psSHP->sHooks.FSeek(psSHP->fpSHP, psSHP->panRecOffset[hEntity], 0) !=0) |
|
| if (nBytesRead >=8 &&nBytesRead==nEntitySize - 8) |
|
else | if (nBytesRead !=nEntitySize) |
|
| if (8+4 > nEntitySize) |
|
| if (bBigEndian) |
|
| if (psShape->nSHPType==SHPT_POLYGON||psShape->nSHPType==SHPT_ARC||psShape->nSHPType==SHPT_POLYGONZ||psShape->nSHPType==SHPT_POLYGONM||psShape->nSHPType==SHPT_ARCZ||psShape->nSHPType==SHPT_ARCM||psShape->nSHPType==SHPT_MULTIPATCH) |
|
| return (psShape) |
|
const char SHPAPI_CALL1 * | SHPTypeName (int nSHPType){ switch(nSHPType |
|
const char SHPAPI_CALL1 * | SHPPartTypeName (int nPartType){ switch(nPartType |
|
void SHPAPI_CALL | SHPDestroyObject (SHPObject *psShape) |
|
static int | SHPGetPartVertexCount (const SHPObject *psObject, int iPart) |
|
static int | SHPRewindIsInnerRing (const SHPObject *psObject, int iOpRing, double dfTestX, double dfTestY) |
|
int SHPAPI_CALL | SHPRewindObject (CPL_UNUSED SHPHandle hSHP, SHPObject *psObject) |
|