PostGIS  2.2.7dev-r@@SVN_REVISION@@

◆ lwline_segmentize2d()

LWLINE* lwline_segmentize2d ( LWLINE line,
double  dist 

Definition at line 134 of file lwline.c.

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

Referenced by lwgeom_segmentize2d().

135 {
136  POINTARRAY *segmentized = ptarray_segmentize2d(line->points, dist);
137  if ( ! segmentized ) return NULL;
138  return lwline_construct(line->srid, NULL, segmentized);
139 }
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:420
int32_t srid
Definition: liblwgeom.h:405
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: