PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ create_point_empty()

static SHPObject* create_point_empty ( SHPDUMPERSTATE state,
LWPOINT lwpoint 
)
static

Definition at line 71 of file pgsql2shp-core.c.

72 {
73  SHPObject *obj;
74  const uint8_t ndr_nan[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f};
75  double double_nan;
76 
77  memcpy(&double_nan, ndr_nan, 8);
78  obj = SHPCreateObject(state->outshptype, -1, 0, NULL, NULL, 1, &double_nan, &double_nan, &double_nan, &double_nan);
79  return obj;
80 }
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 SHPAPI_CALL1(*) SHPCreateSimpleObject(int nSHPType, int nVertices, const double *padfX, const double *padfY, const double *padfZ
unsigned char uint8_t
Definition: uthash.h:79

References shp_dumper_state::outshptype, and SHPCreateObject().

Referenced by ShpLoaderGenerateShapeRow().

Here is the call graph for this function:
Here is the caller graph for this function: