PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ create_sfcgal_point_by_dimensions()

static sfcgal_geometry_t* create_sfcgal_point_by_dimensions ( double  x,
double  y,
double  z,
double  m,
int  is_3d,
int  is_measured 
)
static

Create a SFCGAL point based on dimensional flags (XY, XYZ, XYM, XYZM).

Definition at line 240 of file lwgeom_sfcgal.c.

241 {
242 #if POSTGIS_SFCGAL_VERSION >= 10500
243  if (is_3d && is_measured)
244  return sfcgal_point_create_from_xyzm(x, y, z, m);
245  else if (is_3d)
246  return sfcgal_point_create_from_xyz(x, y, z);
247  else if (is_measured)
248  return sfcgal_point_create_from_xym(x, y, m);
249  else
250  return sfcgal_point_create_from_xy(x, y);
251 #else
252  (void)is_measured;
253  (void)m;
254  if (is_3d)
255  return sfcgal_point_create_from_xyz(x, y, z);
256  else
257  return sfcgal_point_create_from_xy(x, y);
258 #endif
259 }

References pixval::x, and pixval::y.

Referenced by ptarray_to_SFCGAL().

Here is the caller graph for this function: