void populateCache(RTREE_POLY_CACHE *currentCache, LWGEOM *lwgeom, uchar *serializedPoly)
{
int i, j, k, length;
+ LWMPOLY *mpoly;
+ LWPOLY *poly;
+ int nrings;
LWDEBUGF(2, "populateCache called with cache %p geom %p", currentCache, lwgeom);
if(TYPE_GETTYPE(lwgeom->type) == MULTIPOLYGONTYPE)
{
LWDEBUG(2, "populateCache MULTIPOLYGON");
- LWMPOLY *mpoly = (LWMPOLY *)lwgeom;
- int nrings = 0;
+ mpoly = (LWMPOLY *)lwgeom;
+ nrings = 0;
/*
** Count the total number of rings.
*/
else if ( TYPE_GETTYPE(lwgeom->type) == POLYGONTYPE )
{
LWDEBUG(2, "populateCache POLYGON");
- LWPOLY *poly = (LWPOLY *)lwgeom;
+ poly = (LWPOLY *)lwgeom;
currentCache->polyCount = 1;
currentCache->ringCount = poly->nrings;
/*
else
{
/* Uh oh, shouldn't be here. */
- return NULL;
+ return;
}
/*
* it is applicable to the current polygon.\r
*/\r
RTREE_POLY_CACHE *retrieveCache(LWGEOM *lwgeom, uchar *serializedPoly, RTREE_POLY_CACHE *currentCache);\r
-RTREE_POLY_CACHE *createCache();\r
+RTREE_POLY_CACHE *createCache(void);\r
/* Frees the cache. */\r
void populateCache(RTREE_POLY_CACHE *cache, LWGEOM *lwgeom, uchar *serializedPoly);\r
void clearCache(RTREE_POLY_CACHE *cache);\r