[mapserver-commits] r11645 - trunk/mapserver/mapscript/swiginc
svn at osgeo.org
svn at osgeo.org
Wed May 4 14:44:22 EDT 2011
Author: aboudreault
Date: 2011-05-04 11:44:22 -0700 (Wed, 04 May 2011)
New Revision: 11645
Modified:
trunk/mapserver/mapscript/swiginc/layer.i
Log:
SWIG/Mapscript: Added getResultsBounds in layer object (#2967)
Modified: trunk/mapserver/mapscript/swiginc/layer.i
===================================================================
--- trunk/mapserver/mapscript/swiginc/layer.i 2011-05-04 18:08:32 UTC (rev 11644)
+++ trunk/mapserver/mapscript/swiginc/layer.i 2011-05-04 18:44:22 UTC (rev 11645)
@@ -216,6 +216,16 @@
return self->resultcache->numresults;
}
+ %newobject getResultsBounds;
+ rectObj *getResultsBounds()
+ {
+ if (!self->resultcache) return NULL;
+ rectObj *bounds;
+ bounds = (rectObj *) malloc(sizeof(rectObj));
+ MS_COPYRECT(bounds, &self->resultcache->bounds);
+ return bounds;
+ }
+
resultObj *getResult(int i)
{
if (!self->resultcache) return NULL;
More information about the mapserver-commits
mailing list