226 return sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z);
228 return sfcgal_point_create_from_xy(point.
x, point.
y);
234 sfcgal_geometry_t *line = sfcgal_linestring_create();
236 for (i = 0; i < pa->
npoints; i++)
241 sfcgal_linestring_add_point(line,
242 sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z));
246 sfcgal_linestring_add_point(line, sfcgal_point_create_from_xy(point.
x, point.
y));
256 sfcgal_geometry_t *triangle = sfcgal_triangle_create();
260 sfcgal_triangle_set_vertex_from_xyz(triangle, 0, point.
x, point.
y, point.
z);
262 sfcgal_triangle_set_vertex_from_xy(triangle, 0, point.
x, point.
y);
266 sfcgal_triangle_set_vertex_from_xyz(triangle, 1, point.
x, point.
y, point.
z);
268 sfcgal_triangle_set_vertex_from_xy(triangle, 1, point.
x, point.
y);
272 sfcgal_triangle_set_vertex_from_xyz(triangle, 2, point.
x, point.
y, point.
z);
274 sfcgal_triangle_set_vertex_from_xy(triangle, 2, point.
x, point.
y);
282 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.