[mapserver-commits] r12423 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:24:28 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:24:27 -0700 (Fri, 26 Aug 2011)
New Revision: 12423

Modified:
   trunk/mapserver/mapcache/src/geocache_seed.c
Log:
add a delete mode to the seeder
thomas.bonfort | 2011-08-10 15:40:40 +0200 (Wed, 10 Aug 2011)

Modified: trunk/mapserver/mapcache/src/geocache_seed.c
===================================================================
--- trunk/mapserver/mapcache/src/geocache_seed.c	2011-08-26 11:24:24 UTC (rev 12422)
+++ trunk/mapserver/mapcache/src/geocache_seed.c	2011-08-26 11:24:27 UTC (rev 12423)
@@ -104,16 +104,17 @@
    GEOSCoordSeq_setX(mtbboxls,4,e[0]);
    GEOSCoordSeq_setY(mtbboxls,4,e[1]);
    GEOSGeometry *mtbbox = GEOSGeom_createLinearRing(mtbboxls);
+   GEOSGeometry *mtbboxg = GEOSGeom_createPolygon(mtbbox,NULL,0);
    int i;
    int intersects = 0;
    for(i=0;i<nClippers;i++) {
       const GEOSPreparedGeometry *clipper = clippers[i];
-      if(GEOSPreparedIntersects(clipper,mtbbox)) {
+      if(GEOSPreparedIntersects(clipper,mtbboxg)) {
          intersects = 1;
          break;
       }
    }
-   GEOSGeom_destroy(mtbbox);
+   GEOSGeom_destroy(mtbboxg);
    return intersects;
 }
 



More information about the mapserver-commits mailing list