PostGIS  3.7.0dev-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 286 of file gserialized.c.

287 {
288  if (GFLAGS_GET_VERSION(g->gflags))
289  return gserialized2_peek_first_point(g, out_point);
290  else
291  return gserialized1_peek_first_point(g, out_point);
292 }
int gserialized1_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Definition: gserialized1.c:492
int gserialized2_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Definition: gserialized2.c:550
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446

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

Referenced by geometry_to_point(), 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: