PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_peek_first_point()

int gserialized_peek_first_point ( const GSERIALIZED g,
POINT4D out_point 
)

Pull the first point values of a GSERIALIZED.

Only works for POINTTYPE

Definition at line 257 of file gserialized.c.

258 {
259  if (GFLAGS_GET_VERSION(g->gflags))
260  return gserialized2_peek_first_point(g, out_point);
261  else
262  return gserialized1_peek_first_point(g, out_point);
263 }
int gserialized1_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Definition: gserialized1.c:491
int gserialized2_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Definition: gserialized2.c:548
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_peek_first_point(), and gserialized2_peek_first_point().

Referenced by LWGEOM_m_point(), LWGEOM_x_point(), LWGEOM_y_point(), and LWGEOM_z_point().

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