Definition at line 439 of file shp2pgsql-core.c.
  447 #if POSTGIS_DEBUG_LEVEL > 0 
  448         static int call = -1;
 
  452         LWDEBUGF(4, 
"FindPolygons[%d]: allocated space for %d rings\n", call, obj->
nParts);
 
  459         for (pi=0; pi < obj->
nParts; pi++)
 
  469                 if (pi == obj->
nParts - 1)
 
  487                 for (vi = vs; vi < ve; vi++)
 
  509                 if (area < 0.0 || obj->nParts == 1)
 
  511                         Outer[out_index] = ring;
 
  517                         Inner[in_index] = ring;
 
  522         LWDEBUGF(4, 
"FindPolygons[%d]: found %d Outer, %d Inners\n", call, out_index, in_index);
 
  526         for (pi = 0; pi < in_index; pi++)
 
  530                 Ring *inner = Inner[pi], *outer = NULL;
 
  549                 for (i = out_index - 1; i >= 0; i--)
 
  553                         in = 
PIP(pt, Outer[i]->list, Outer[i]->n);
 
  554                         if ( in || 
PIP(pt2, Outer[i]->list, Outer[i]->n) )
 
  573                         LWDEBUGF(4, 
"FindPolygons[%d]: hole %d is orphan\n", call, pi);
 
  575                         Outer[out_index] = inner;
 
#define LWDEBUGF(level, msg,...)
int PIP(Point P, Point *V, int n)
PIP(): crossing number test for a point in a polygon input: P = a point, V[] = vertex points of a pol...
struct struct_ring * next
 
References free(), struct_ring::linked, struct_ring::list, LWDEBUGF, struct_point::m, malloc(), struct_ring::n, struct_ring::next, tagSHPObject::nParts, tagSHPObject::nVertices, tagSHPObject::padfM, tagSHPObject::padfX, tagSHPObject::padfY, tagSHPObject::padfZ, tagSHPObject::panPartStart, PIP(), struct_point::x, struct_point::y, and struct_point::z.
Referenced by GeneratePolygonGeometry().