|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#include "shapefil_private.h"#include <assert.h>#include <errno.h>#include <limits.h>#include <math.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Macros | |
| #define | FALSE 0 |
| #define | TRUE 1 |
| #define | ByteCopy(a, b, c) memcpy(b, a, c) |
| #define | MIN(a, b) ((a < b) ? a : b) |
| #define | MAX(a, b) ((a > b) ? a : b) |
| #define | SHP_RESTORE_SHX_HINT_MESSAGE " Use SHPRestoreSHX() to restore or create it." |
Definition at line 851 of file shpopen.c.
References free(), SHPLIB_NULLPTR, and SHPWriteHeader().
Referenced by SHPOpenLL().
Definition at line 1147 of file shpopen.c.
Referenced by SHPCreateObject().
Definition at line 944 of file shpopen.c.
References SASetupDefaultHooks(), and SHPCreateLL().
Definition at line 960 of file shpopen.c.
References ByteCopy, FALSE, free(), malloc(), SHP_SWAP32, SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPCreate().
| SHPObject * 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 | ||
| ) |
Definition at line 1180 of file shpopen.c.
References FALSE, free(), malloc(), MAX, SHPComputeExtents(), SHPLIB_NULLPTR, SHPP_RING, SHPT_ARC, SHPT_ARCM, SHPT_ARCZ, SHPT_MULTIPATCH, SHPT_MULTIPOINTM, SHPT_MULTIPOINTZ, SHPT_POINTM, SHPT_POINTZ, SHPT_POLYGON, SHPT_POLYGONM, SHPT_POLYGONZ, STATIC_CAST, and TRUE.
Referenced by SHPCreateSimpleObject().
| SHPObject * SHPCreateSimpleObject | ( | int | nSHPType, |
| int | nVertices, | ||
| const double * | padfX, | ||
| const double * | padfY, | ||
| const double * | padfZ | ||
| ) |
Definition at line 1309 of file shpopen.c.
References SHPCreateObject(), and SHPLIB_NULLPTR.
Definition at line 2725 of file shpopen.c.
References FALSE, free(), and SHPLIB_NULLPTR.
Referenced by SHPReadObject().
| void SHPGetInfo | ( | const SHPHandle | psSHP, |
| int * | pnEntities, | ||
| int * | pnShapeType, | ||
| double * | padfMinBound, | ||
| double * | padfMaxBound | ||
| ) |
Definition at line 916 of file shpopen.c.
References SHPLIB_NULLPTR.
Definition at line 219 of file shpopen.c.
References SASetupDefaultHooks(), and SHPOpenLL().
Definition at line 251 of file shpopen.c.
References FALSE, free(), malloc(), MAX, SHP_RESTORE_SHX_HINT_MESSAGE, SHP_SWAP32, SHP_SWAP64, SHPClose(), SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPOpen(), and SHPOpenLLEx().
| SHPHandle SHPOpenLLEx | ( | const char * | pszLayer, |
| const char * | pszAccess, | ||
| const SAHooks * | psHooks, | ||
| int | bRestoreSHX | ||
| ) |
Definition at line 602 of file shpopen.c.
References SHPLIB_NULLPTR, SHPOpenLL(), and SHPRestoreSHX().
Definition at line 2695 of file shpopen.c.
References SHPP_FIRSTRING, SHPP_INNERRING, SHPP_OUTERRING, SHPP_RING, SHPP_TRIFAN, and SHPP_TRISTRIP.
Definition at line 1852 of file shpopen.c.
References FALSE, SHP_SWAP32, SHP_SWAPDOUBLE_CPY, SHPDestroyObject(), SHPLIB_NULLPTR, SHPP_RING, SHPT_ARC, SHPT_ARCM, SHPT_ARCZ, SHPT_MULTIPATCH, SHPT_MULTIPOINT, SHPT_MULTIPOINTM, SHPT_MULTIPOINTZ, SHPT_POINT, SHPT_POINTM, SHPT_POINTZ, SHPT_POLYGON, SHPT_POLYGONM, SHPT_POLYGONZ, STATIC_CAST, and TRUE.
Definition at line 623 of file shpopen.c.
References FALSE, free(), malloc(), SHP_SWAP32, SHPLIB_NULLPTR, 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, SHPT_POLYGONZ, STATIC_CAST, and TRUE.
Referenced by SHPOpenLLEx().
Definition at line 2856 of file shpopen.c.
References FALSE, SHPT_POLYGON, SHPT_POLYGONM, SHPT_POLYGONZ, and TRUE.
Definition at line 897 of file shpopen.c.
References assert, SHPInfo::bFastModeReadObject, SHPInfo::psCachedObject, SHPLIB_NULLPTR, and STATIC_CAST.
Definition at line 2641 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.
Definition at line 62 of file shpopen.c.
References ByteCopy, free(), malloc(), SHP_SWAP32, SHP_SWAP64, SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by SHPClose().
Definition at line 1323 of file shpopen.c.
References assert, ByteCopy, DISABLE_MULTIPATCH_MEASURE, free(), malloc(), MAX, MIN, SHP_SWAP32, SHP_SWAP64, SHPLIB_NULLPTR, 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, SHPT_POLYGONZ, STATIC_CAST, and TRUE.