PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ create_point_empty()

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

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

89 {
90  SHPObject *obj;
91  const uint8_t ndr_nan[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x7f};
92  double double_nan;
93 
94  memcpy(&double_nan, ndr_nan, 8);
95  obj = SHPCreateObject(state->outshptype, -1, 0, NULL, NULL, 1, &double_nan, &double_nan, &double_nan, &double_nan);
96  return obj;
97 }
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

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: