40 lwerror(
"missing m-value in function %s\n",__func__);
52 int pointsize = res_ndims *
sizeof(double);
63 if(m_val >= min && m_val <= max)
70 for(i=0;i<pa->npoints;i++)
73 if(m_val >= min && m_val <= max)
76 res_cursor+=res_ndims;
101 LWDEBUGF(2,
"Entered %s", __func__);
117 LWDEBUGF(2,
"Entered %s", __func__);
122 for( i = 0; i < nrings; i++ )
135 LWDEBUG(2,
"Unable to add ring to polygon");
136 lwerror(
"Unable to add ring to polygon");
164 for( i = 0; i < igeom->
ngeoms; i++ )
181 switch ( geom->
type )
231 switch ( geom->
type )
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
LWLINE * lwline_construct_empty(int srid, char hasz, char hasm)
int lwpoly_add_ring(LWPOLY *poly, POINTARRAY *pa)
Add a ring, allocating extra space if necessary.
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
LWGEOM * lwpoint_as_lwgeom(const LWPOINT *obj)
#define FLAGS_NDIMS(flags)
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define FLAGS_GET_M(flags)
void ptarray_free(POINTARRAY *pa)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
void lwpoly_free(LWPOLY *poly)
LWPOINT * lwpoint_construct_empty(int srid, char hasz, char hasm)
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
LWPOLY * lwpoly_construct_empty(int srid, char hasz, char hasm)
int lwcollection_is_empty(const LWCOLLECTION *col)
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static POINTARRAY * ptarray_filterm(POINTARRAY *pa, double min, double max, int returnm)
static LWCOLLECTION * lwcollection_filterm(const LWCOLLECTION *igeom, double min, double max, int returnm)
static LWPOINT * lwpoint_filterm(LWPOINT *pt, double min, double max, int returnm)
static LWGEOM * lwgeom_filter_m_ignore_null(LWGEOM *geom, double min, double max, int returnm)
static LWLINE * lwline_filterm(LWLINE *line, double min, double max, int returnm)
LWGEOM * lwgeom_filter_m(LWGEOM *geom, double min, double max, int returnm)
static LWPOLY * lwpoly_filterm(LWPOLY *poly, double min, double max, int returnm)
uint8_t * serialized_pointlist