PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwpoly_to_points_make_cell()

static GEOSGeometry * lwpoly_to_points_make_cell ( double  xmin,
double  ymin,
double  cell_size 
)
static

Definition at line 1403 of file liblwgeom/lwgeom_geos.c.

1404{
1405 GEOSCoordSequence *cs = GEOSCoordSeq_create(5, 2);
1406 GEOSCoordSeq_setXY(cs, 0, xmin, ymin);
1407 GEOSCoordSeq_setXY(cs, 1, xmin + cell_size, ymin);
1408 GEOSCoordSeq_setXY(cs, 2, xmin + cell_size, ymin + cell_size);
1409 GEOSCoordSeq_setXY(cs, 3, xmin, ymin + cell_size);
1410 GEOSCoordSeq_setXY(cs, 4, xmin, ymin);
1411 return GEOSGeom_createPolygon(GEOSGeom_createLinearRing(cs), NULL, 0);
1412}

Referenced by lwpoly_to_points().

Here is the caller graph for this function: