Definition at line 319 of file lwcollection.c.
320{
321 uint32_t i;
322 int ngeoms = 0;
323
324 if ( ! col )
325 {
326 lwerror(
"Null input geometry.");
327 return 0;
328 }
329
330 for ( i = 0; i < col->
ngeoms; i++ )
331 {
333 {
335 {
340 ngeoms += 1;
341 break;
347 break;
350 break;
351 }
352 }
353 }
354 return ngeoms;
355}
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int lwcollection_ngeoms(const LWCOLLECTION *col)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
References CIRCSTRINGTYPE, COLLECTIONTYPE, LWCOLLECTION::geoms, LINETYPE, lwcollection_ngeoms(), lwerror(), MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POINTTYPE, POLYGONTYPE, and LWGEOM::type.
Referenced by lwcollection_ngeoms().