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

◆ lwline_segmentize2d()

LWLINE * lwline_segmentize2d ( const LWLINE line,
double  dist 
)

Definition at line 132 of file lwline.c.

133{
134 POINTARRAY *segmentized = ptarray_segmentize2d(line->points, dist);
135 if ( ! segmentized ) return NULL;
136 return lwline_construct(line->srid, NULL, segmentized);
137}
POINTARRAY * ptarray_segmentize2d(const POINTARRAY *ipa, double dist)
Returns a modified POINTARRAY so that no segment is longer than the given distance (computed using 2d...
Definition ptarray.c:413
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
Definition lwline.c:42
POINTARRAY * points
Definition liblwgeom.h:483
int32_t srid
Definition liblwgeom.h:484

References lwline_construct(), LWLINE::points, ptarray_segmentize2d(), and LWLINE::srid.

Referenced by lwgeom_segmentize2d().

Here is the call graph for this function:
Here is the caller graph for this function: