211 return sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z);
213 return sfcgal_point_create_from_xy(point.
x, point.
y);
219 sfcgal_geometry_t *line = sfcgal_linestring_create();
221 for (i = 0; i < pa->
npoints; i++)
226 sfcgal_linestring_add_point(line,
227 sfcgal_point_create_from_xyz(point.
x, point.
y, point.
z));
231 sfcgal_linestring_add_point(line, sfcgal_point_create_from_xy(point.
x, point.
y));
241 sfcgal_geometry_t *triangle = sfcgal_triangle_create();
245 sfcgal_triangle_set_vertex_from_xyz(triangle, 0, point.
x, point.
y, point.
z);
247 sfcgal_triangle_set_vertex_from_xy(triangle, 0, point.
x, point.
y);
251 sfcgal_triangle_set_vertex_from_xyz(triangle, 1, point.
x, point.
y, point.
z);
253 sfcgal_triangle_set_vertex_from_xy(triangle, 1, point.
x, point.
y);
257 sfcgal_triangle_set_vertex_from_xyz(triangle, 2, point.
x, point.
y, point.
z);
259 sfcgal_triangle_set_vertex_from_xy(triangle, 2, point.
x, point.
y);
267 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.