228 return sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z);
230 return sfcgal_point_create_from_xy(point.
x, point.
y);
236 sfcgal_geometry_t *line = sfcgal_linestring_create();
238 for (i = 0; i < pa->
npoints; i++)
243 sfcgal_linestring_add_point(line,
244 sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z));
248 sfcgal_linestring_add_point(line, sfcgal_point_create_from_xy(point.
x, point.
y));
258 sfcgal_geometry_t *triangle = sfcgal_triangle_create();
262 sfcgal_triangle_set_vertex_from_xyz(triangle, 0, point.
x, point.
y, point.
z);
264 sfcgal_triangle_set_vertex_from_xy(triangle, 0, point.
x, point.
y);
268 sfcgal_triangle_set_vertex_from_xyz(triangle, 1, point.
x, point.
y, point.
z);
270 sfcgal_triangle_set_vertex_from_xy(triangle, 1, point.
x, point.
y);
274 sfcgal_triangle_set_vertex_from_xyz(triangle, 2, point.
x, point.
y, point.
z);
276 sfcgal_triangle_set_vertex_from_xy(triangle, 2, point.
x, point.
y);
284 lwerror(
"ptarray_from_SFCGAL: Unknown Type");
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
int getPoint3dz_p(const POINTARRAY *pa, uint32_t n, POINT3DZ *point)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.