Given a geometry clip based on the from/to range of one of its ordinates (x, y, z, m).
Use for m- and z- clipping.
780 lwerror(
"lwgeom_clip_to_ordinate_range: null input geometry!");
782 switch ( lwin->
type )
802 if ( out_col == NULL )
803 lwerror(
"lwgeom_clip_to_ordinate_range clipping routine returned NULL");
814 for ( i = 0; i < out_col->
ngeoms; i++ )
819 lwnotice(
"lwgeom_clip_to_ordinate_range cannot offset a clipped point");
828 lwerror(
"lwgeom_offsetcurve returned null");
834 lwerror(
"lwgeom_clip_to_ordinate_range found an unexpected type (%s) in the offset routine",
lwtype_name(type));
LWCOLLECTION * lwpoint_clip_to_ordinate_range(const LWPOINT *point, char ordinate, double from, double to)
Clip an input POINT between two values, on any ordinate input.
LWCOLLECTION * lwmpoint_clip_to_ordinate_range(const LWMPOINT *mpoint, char ordinate, double from, double to)
Clip an input MULTIPOINT between two values, on any ordinate input.
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
LWGEOM * lwgeom_offsetcurve(const LWLINE *lwline, double size, int quadsegs, int joinStyle, double mitreLimit)
LWCOLLECTION * lwline_clip_to_ordinate_range(const LWLINE *line, char ordinate, double from, double to)
Take in a LINESTRING and return a MULTILINESTRING of those portions of the LINESTRING between the fro...
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
LWCOLLECTION * lwmline_clip_to_ordinate_range(const LWMLINE *mline, char ordinate, double from, double to)
Clip an input MULTILINESTRING between two values, on any ordinate input.
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)