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

◆ lwgeom_segmentize2d()

LWGEOM * lwgeom_segmentize2d ( const LWGEOM line,
double  dist 
)
extern

Definition at line 771 of file lwgeom.c.

772{
773 switch (lwgeom->type)
774 {
775 case LINETYPE:
776 return (LWGEOM *)lwline_segmentize2d((LWLINE *)lwgeom,
777 dist);
778 case POLYGONTYPE:
779 return (LWGEOM *)lwpoly_segmentize2d((LWPOLY *)lwgeom,
780 dist);
781 case MULTILINETYPE:
782 case MULTIPOLYGONTYPE:
783 case COLLECTIONTYPE:
785 (LWCOLLECTION *)lwgeom, dist);
786
787 default:
788 return lwgeom_clone(lwgeom);
789 }
790}
#define COLLECTIONTYPE
Definition liblwgeom.h:108
#define MULTILINETYPE
Definition liblwgeom.h:106
#define LINETYPE
Definition liblwgeom.h:103
LWCOLLECTION * lwcollection_segmentize2d(const LWCOLLECTION *coll, double dist)
#define MULTIPOLYGONTYPE
Definition liblwgeom.h:107
#define POLYGONTYPE
Definition liblwgeom.h:104
LWPOLY * lwpoly_segmentize2d(const LWPOLY *line, double dist)
Definition lwpoly.c:312
LWLINE * lwline_segmentize2d(const LWLINE *line, double dist)
Definition lwline.c:132
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition lwgeom.c:491

References COLLECTIONTYPE, LINETYPE, lwcollection_segmentize2d(), lwgeom_clone(), lwline_segmentize2d(), lwpoly_segmentize2d(), MULTILINETYPE, MULTIPOLYGONTYPE, POLYGONTYPE, and LWGEOM::type.

Referenced by lwcollection_segmentize2d(), LWGEOM_segmentize2d(), and test_lwgeom_segmentize2d().

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