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